3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bar(string $bar, string $expected) : bool { return $expected === $bar; } foreach ( [ 'a' => 'b', 'foo' => 'fop', ] as $to_increment => $expected ) { echo $to_increment, ',', $expected, ','; ++$to_increment; echo bar($to_increment, $expected) ? 'yup' : 'nope', "\n"; }

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.4.130.0110.00917.71
8.4.120.0050.00520.28
8.4.110.0100.00922.52
8.4.100.0040.00517.68
8.4.90.0050.00417.70
8.4.80.0040.00518.71
8.4.70.0170.00317.90
8.4.60.0120.01018.71
8.4.50.0090.01018.98
8.4.40.0120.00820.44
8.4.30.0000.01122.56
8.4.20.0140.00718.79
8.4.10.0000.01017.63
8.3.260.0150.00516.30
8.3.250.0130.00518.81
8.3.240.0050.00316.82
8.3.230.0140.00616.48
8.3.220.0100.00918.84
8.3.210.0110.00716.80
8.3.200.0110.00916.46
8.3.190.0070.00916.87
8.3.180.0120.00618.98
8.3.170.0070.00720.65
8.3.160.0130.00617.26
8.3.150.0040.01417.29
8.3.140.0180.00016.54
8.3.130.0030.00616.80
8.3.120.0060.00319.14
8.3.110.0070.00716.62
8.3.100.0030.00616.75
8.3.90.0050.00318.29
8.3.80.0030.00618.40
8.3.70.0060.00918.43
8.3.60.0070.00718.30
8.3.50.0090.01321.32
8.3.40.0120.00318.98
8.3.30.0110.00418.67
8.3.20.0070.00021.72
8.3.10.0080.00021.88
8.3.00.0040.00423.69
8.2.290.0070.01020.22
8.2.280.0100.00818.36
8.2.270.0140.00418.91
8.2.260.0120.00918.40
8.2.250.0050.00318.41
8.2.240.0080.00316.79
8.2.230.0040.00420.94
8.2.220.0120.00624.06
8.2.210.0000.00726.77
8.2.200.0000.01018.41
8.2.190.0150.00416.58
8.2.180.0120.00316.50
8.2.170.0090.00622.96
8.2.160.0140.00020.52
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0140.00026.16
8.2.110.0090.00020.44
8.2.100.0080.00317.78
8.2.90.0000.00817.38
8.2.80.0050.00317.97
8.2.70.0040.00418.04
8.2.60.0090.00018.05
8.2.50.0000.00818.10
8.2.40.0000.01019.59
8.2.30.0040.00419.33
8.2.20.0040.00418.05
8.2.10.0030.00619.32
8.2.00.0040.00419.29
8.1.330.0130.00516.56
8.1.320.0090.01116.22
8.1.310.0000.00816.92
8.1.300.0000.00817.94
8.1.290.0000.00918.88
8.1.280.0130.00325.92
8.1.270.0060.00322.02
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0080.00023.88
8.1.230.0060.00619.17
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.10
8.1.190.0000.00817.09
8.1.180.0070.00618.10
8.1.170.0040.00418.50
8.1.160.0050.00218.82
8.1.150.0040.00418.77
8.1.140.0030.00322.19
8.1.130.0030.00720.01
8.1.120.0040.00417.36
8.1.110.0050.00217.47
8.1.100.0030.00617.45
8.1.90.0080.00017.36
8.1.80.0000.00717.43
8.1.70.0030.00317.28
8.1.60.0000.00817.57
8.1.50.0000.00817.43
8.1.40.0090.00017.53
8.1.30.0040.00417.63
8.1.20.0090.00317.65
8.1.10.0030.00517.61
8.1.00.0040.00417.41
8.0.300.0000.00719.64
8.0.290.0060.00316.58
8.0.280.0030.00318.40
8.0.270.0070.00017.27
8.0.260.0030.00319.99
8.0.250.0030.00716.91
8.0.240.0000.00616.87
8.0.230.0000.00716.91
8.0.220.0000.00716.82
8.0.210.0070.00016.73
8.0.200.0000.00616.95
8.0.190.0040.00416.83
8.0.180.0090.00016.88
8.0.170.0030.00516.91
8.0.160.0030.00316.73
8.0.150.0000.00816.68
8.0.140.0000.00716.85
8.0.130.0060.00013.31
8.0.120.0050.00316.81
8.0.110.0000.00716.84
8.0.100.0040.00416.80
8.0.90.0040.00416.74
8.0.80.0080.00816.89
8.0.70.0080.00016.90
8.0.60.0040.00416.90
8.0.50.0070.00016.83
8.0.30.0100.01017.25
8.0.20.0070.01616.82
8.0.10.0040.00416.84
8.0.00.0070.01116.96
7.4.330.0000.00515.55
7.4.320.0060.00016.59
7.4.300.0030.00316.41
7.4.290.0000.00816.42
7.4.280.0000.00716.60
7.4.270.0060.00016.62
7.4.260.0030.00316.57
7.4.250.0030.00416.54
7.4.240.0060.00216.60
7.4.230.0070.00016.63
7.4.220.0000.00716.60
7.4.210.0040.01016.61
7.4.200.0000.00716.71
7.4.130.0120.00616.55
7.4.120.0130.00316.43
7.4.110.0070.01116.45
7.4.100.0100.01316.55
7.4.90.0110.00816.46
7.4.80.0110.00619.39
7.4.70.0110.00716.43
7.4.60.0060.00916.57
7.4.50.0050.00516.64
7.4.40.0150.00616.69
7.4.00.0030.01215.00
7.3.330.0060.00013.18
7.3.320.0030.00313.20
7.3.310.0000.00716.26
7.3.300.0030.00316.38
7.3.290.0000.00716.33
7.3.280.0060.01616.43
7.3.260.0100.00816.52
7.3.240.0090.01016.45
7.3.230.0090.02916.30
7.3.210.0070.01016.36
7.3.200.0030.01316.41
7.3.190.0130.00616.41
7.3.180.0120.00316.63
7.3.170.0090.01216.57
7.3.160.0090.00616.50
7.3.70.0130.01314.91
7.3.60.0200.00314.81
7.3.50.0110.01414.80
7.3.40.0200.00714.67
7.3.30.0180.01214.81
7.3.20.0170.01414.90
7.3.10.0040.01614.66
7.3.00.0150.00914.69
7.2.330.0080.00816.89
7.2.320.0030.01316.42
7.2.310.0100.00716.72
7.2.300.0000.02016.78
7.2.290.0120.00416.53
7.2.200.0140.01115.05
7.2.190.0100.01915.01
7.2.180.0180.00614.91
7.2.170.0160.01714.99
7.2.160.0120.01015.09
7.2.150.0200.00614.71
7.2.140.0150.00714.73
7.2.130.0230.01015.16
7.2.120.0190.01015.13
7.2.110.0210.00515.09
7.2.100.0210.01114.80
7.2.90.0220.00415.12
7.2.80.0170.00215.04
7.2.70.0100.01314.79
7.2.60.0570.00714.86
7.2.50.0230.00314.66
7.2.40.0030.01315.02
7.2.30.0160.01015.02
7.2.20.0220.00615.02
7.2.10.0140.01415.08
7.2.00.0120.00615.26
7.1.300.0170.00914.08
7.1.290.0150.00913.87
7.1.280.0170.01314.24
7.1.270.0100.01213.85
7.1.260.0130.00913.73
7.1.250.0090.01213.79

preferences:
114.92 ms | 403 KiB | 5 Q