3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Whatever { static $color_palette = array( "strategy-genre" => "#C93939" ); function bg($genre) { echo "Background color is set to " . self::$color_palette[$genre]; echo "\n"; return self::$color_palette[$genre]; } } $inst = new Whatever(); echo $inst -> bg("strategy-genre");

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0040.01518.09
8.3.50.0140.01116.33
8.3.40.0090.00618.68
8.3.30.0070.00718.67
8.3.20.0040.00418.48
8.3.10.0050.00221.90
8.3.00.0000.00822.47
8.2.180.0030.01216.75
8.2.170.0090.00622.96
8.2.160.0120.00622.18
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0140.00020.47
8.2.120.0070.00026.16
8.2.110.0030.00721.12
8.2.100.0110.00717.72
8.2.90.0060.00317.84
8.2.80.0080.00017.97
8.2.70.0040.00417.93
8.2.60.0080.00018.28
8.2.50.0030.00618.10
8.2.40.0030.00622.15
8.2.30.0000.00719.16
8.2.20.0030.00518.16
8.2.10.0040.00418.08
8.2.00.0030.00318.34
8.1.280.0140.00325.92
8.1.270.0040.00424.02
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00321.28
8.1.230.0100.00317.45
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00817.35
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0040.00418.84
8.1.160.0040.00418.83
8.1.150.0000.00720.07
8.1.140.0000.00719.56
8.1.130.0050.00318.71
8.1.120.0030.00317.43
8.1.110.0080.00017.46
8.1.100.0000.00917.45
8.1.90.0040.00417.39
8.1.80.0080.00017.38
8.1.70.0030.00317.43
8.1.60.0040.00417.54
8.1.50.0060.00317.42
8.1.40.0030.00617.48
8.1.30.0000.00917.64
8.1.20.0000.00717.62
8.1.10.0050.00217.53
8.1.00.0000.01117.53
8.0.300.0040.00419.64
8.0.290.0050.00316.75
8.0.280.0000.00718.32
8.0.270.0000.00817.23
8.0.260.0030.00319.02
8.0.250.0030.00316.86
8.0.240.0000.00716.97
8.0.230.0070.00016.92
8.0.220.0040.00416.92
8.0.210.0070.00016.88
8.0.200.0000.00616.86
8.0.190.0030.00616.97
8.0.180.0040.00416.89
8.0.170.0000.00716.91
8.0.160.0000.00716.92
8.0.150.0000.00716.91
8.0.140.0040.00416.90
8.0.130.0040.00413.41
8.0.120.0000.00716.87
8.0.110.0070.00016.61
8.0.100.0000.00716.70
8.0.90.0050.00216.82
8.0.80.0090.00616.73
8.0.70.0040.00416.73
8.0.60.0000.00716.84
8.0.50.0000.00716.81
8.0.30.0080.01117.12
8.0.20.0100.01017.40
8.0.10.0040.00416.98
8.0.00.0070.01216.61
7.4.330.0000.00515.55
7.4.320.0060.00016.59
7.4.300.0000.00616.52
7.4.290.0000.00716.59
7.4.280.0080.00016.42
7.4.270.0070.00016.63
7.4.260.0070.00016.60
7.4.250.0030.00316.57
7.4.240.0030.00316.61
7.4.230.0000.00716.41
7.4.220.0070.01116.71
7.4.210.0060.00916.40
7.4.200.0030.00316.69
7.4.150.0130.00617.40
7.4.140.0080.01017.86
7.4.130.0110.00616.64
7.4.120.0110.00916.63
7.4.110.0100.00716.44
7.4.100.0100.00716.35
7.4.90.0150.00916.70
7.4.80.0130.00819.39
7.4.70.0070.01016.29
7.4.60.0080.00816.48
7.4.50.0070.00716.42
7.4.40.0100.00716.59
7.4.30.0120.00916.42
7.4.00.0070.01115.05
7.3.330.0060.00013.23
7.3.320.0050.00013.39
7.3.310.0030.00316.27
7.3.300.0000.00716.18
7.3.290.0070.00716.28
7.3.280.0100.00916.31
7.3.270.0070.01017.40
7.3.260.0140.00616.53
7.3.240.0110.00816.36
7.3.230.0100.00716.35
7.3.210.0030.01416.32
7.3.200.0050.01116.59
7.3.190.0040.01416.36
7.3.180.0060.01016.45
7.3.170.0030.01316.26
7.3.160.0080.00816.43
7.3.10.0070.00716.88
7.3.00.0070.00716.74
7.2.330.0090.00916.45
7.2.320.0040.01216.59
7.2.310.0120.00616.73
7.2.300.0030.01316.68
7.2.290.0060.01016.74
7.2.130.0030.01016.93
7.2.120.0070.00716.74
7.2.110.0030.01416.66
7.2.100.0120.00316.93
7.2.90.0000.01717.11
7.2.80.0040.00816.93
7.2.70.0100.00616.98
7.2.60.0050.00916.64
7.2.50.0030.01016.96
7.2.40.0140.00017.05
7.2.30.0070.00716.81
7.2.20.0030.00617.01
7.2.10.0060.00916.68
7.2.00.0070.00716.86
7.1.250.0070.00715.68
7.1.200.0050.00315.76
7.1.70.0070.00317.13
7.1.60.0320.00715.10
7.1.50.0600.01032.55
7.1.40.0930.02732.49
7.1.30.0630.01732.64
7.1.20.1030.01032.81
7.1.10.0630.00314.64
7.1.00.0700.01014.59
7.0.200.0060.00616.75
7.0.190.0670.00314.75
7.0.180.1030.00714.33
7.0.170.0500.01014.25
7.0.160.0670.01014.23
7.0.150.0770.00714.45
7.0.140.0730.00714.58
7.0.130.0600.01014.60
7.0.120.0600.01014.59
7.0.110.0900.00714.36
7.0.100.0600.01314.32
7.0.90.0770.00714.15
7.0.80.1030.01714.45
7.0.70.0770.00714.38
7.0.60.0830.01314.17
7.0.50.0730.00714.17
7.0.40.0600.01314.50
7.0.30.0770.00714.48
7.0.20.1170.01314.43
7.0.10.0800.00714.61
7.0.00.1030.01314.35

preferences:
34.06 ms | 400 KiB | 5 Q