3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$foo()() //class foo { static function bar(){ return 'bar'; }} function bar() { echo 'bazz'; } $foo = 'foo'; echo (function() { return array(1,2,3);})[0]; //echo $foo()[0];

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.0090.00616.88
8.3.50.0300.00621.89
8.3.40.0080.00818.61
8.3.30.0110.00418.78
8.3.20.0030.00620.24
8.3.10.0050.00323.62
8.3.00.0050.00317.80
8.2.180.0070.00718.25
8.2.170.0140.00322.96
8.2.160.0030.01020.57
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0000.01017.63
8.2.110.0000.01022.29
8.2.100.0030.00917.93
8.2.90.0050.00319.35
8.2.80.0030.00617.97
8.2.70.0040.00417.75
8.2.60.0040.00417.93
8.2.50.0030.00718.07
8.2.40.0040.00421.25
8.2.30.0000.00720.50
8.2.20.0000.00817.73
8.2.10.0000.00718.13
8.2.00.0070.00018.00
8.1.280.0110.00425.92
8.1.270.0080.00023.96
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0070.01020.94
8.1.230.0040.00817.55
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0080.00018.84
8.1.160.0050.00221.93
8.1.150.0030.00518.83
8.1.140.0030.00621.41
8.1.130.0030.00317.70
8.1.120.0040.00417.47
8.1.110.0080.00017.40
8.1.100.0000.00917.37
8.1.90.0030.00517.46
8.1.80.0000.00717.49
8.1.70.0030.00317.36
8.1.60.0090.00017.46
8.1.50.0050.00317.53
8.1.40.0080.00017.52
8.1.30.0000.00817.51
8.1.20.0040.00417.64
8.1.10.0080.00017.61
8.1.00.0050.00217.40
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00718.38
8.0.270.0030.00317.09
8.0.260.0060.00017.20
8.0.250.0040.00416.96
8.0.240.0030.00316.91
8.0.230.0070.00016.97
8.0.220.0000.00716.79
8.0.210.0070.00016.85
8.0.200.0000.00616.90
8.0.190.0000.00817.01
8.0.180.0040.00416.98
8.0.170.0020.00516.83
8.0.160.0070.00016.91
8.0.150.0070.00016.80
8.0.140.0000.00716.93
8.0.130.0060.00313.38
8.0.120.0000.00716.96
8.0.110.0050.00316.82
8.0.100.0040.00416.84
8.0.90.0040.00416.84
8.0.80.0090.00616.93
8.0.70.0020.00517.07
8.0.60.0040.00417.01
8.0.50.0050.00316.80
8.0.30.0150.00617.11
8.0.20.0080.01217.41
8.0.10.0030.00516.97
8.0.00.0100.00716.82
7.4.330.0000.00515.10
7.4.320.0030.00316.52
7.4.300.0060.00016.41
7.4.290.0070.00016.60
7.4.280.0080.00016.57
7.4.270.0070.00316.56
7.4.260.0080.00416.39
7.4.250.0030.00716.57
7.4.240.0040.00416.55
7.4.230.0040.00216.57
7.4.220.0070.01016.52
7.4.210.0100.00316.53
7.4.200.0030.00316.43
7.4.160.0120.00916.59
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0120.00416.47
7.4.120.0090.01016.54
7.4.110.0170.00016.41
7.4.100.0140.00416.48
7.4.90.0190.02916.41
7.4.80.0070.01019.39
7.4.70.0070.01316.57
7.4.60.0070.01016.40
7.4.50.0040.00416.57
7.4.40.0100.01016.59
7.4.30.0060.00916.52
7.4.00.0070.00715.00
7.3.330.0050.00013.32
7.3.320.0000.00613.35
7.3.310.0040.00316.26
7.3.300.0030.00316.37
7.3.290.0040.01216.34
7.3.280.0030.01216.35
7.3.270.0030.01617.40
7.3.260.0160.00616.41
7.3.250.0100.01216.33
7.3.240.0110.00816.45
7.3.230.0120.00616.44
7.3.210.0110.01116.45
7.3.200.0090.01216.39
7.3.190.0100.00716.46
7.3.180.0100.00716.37
7.3.170.0130.01016.43
7.3.160.0090.00616.56
7.2.330.0190.00016.67
7.2.320.0150.00316.65
7.2.310.0090.00916.56
7.2.300.0110.00416.64
7.2.290.0120.00816.55
7.2.60.0060.01016.66
7.2.00.0070.01019.44
7.1.200.0000.01015.61
7.1.100.0090.00318.02
7.1.70.0030.01017.21
7.1.60.0100.01319.11
7.1.50.0100.00716.97
7.1.00.0100.06322.45
7.0.200.0070.00016.55
7.0.60.0130.06020.07
7.0.50.0100.07317.73
7.0.40.0070.04320.26
7.0.30.0300.06320.17
7.0.20.0230.04320.30
7.0.10.0330.08320.13
7.0.00.0200.07720.23
5.6.280.0030.03321.05
5.6.210.0030.07320.57
5.6.200.0000.09018.14
5.6.190.0170.07320.63
5.6.180.3330.03720.46
5.6.170.0200.04720.54
5.6.160.0170.07720.51
5.6.150.0130.03018.17
5.6.140.0030.08718.28
5.6.130.0070.08718.17
5.6.120.0070.08321.00
5.6.110.0070.04721.14
5.6.100.0130.07021.11
5.6.90.0070.08721.00
5.6.80.0130.05020.38
5.6.70.0070.07320.40
5.5.350.0170.07720.42
5.5.340.0100.08018.05
5.5.330.0030.06720.40
5.5.320.0300.04720.27
5.5.310.0200.06720.26
5.5.300.0100.07717.92
5.5.290.0070.03717.94
5.5.280.0000.09320.88
5.5.270.0030.06320.88
5.5.260.0070.07720.65
5.5.250.0000.07720.68
5.5.240.0000.04020.16
5.4.450.0570.06319.70
5.4.440.0500.07319.58
5.4.430.0630.05019.47
5.4.420.0500.05019.60
5.4.410.0470.05719.32
5.4.400.0630.04019.29
5.4.390.0570.05719.29
5.4.380.0530.05719.30
5.4.370.0530.04718.86
5.4.360.0630.05719.07
5.4.350.0630.07018.88
5.4.340.0470.05719.30
5.4.320.0670.05319.25
5.4.310.0500.04719.31
5.4.300.0530.04319.10
5.4.290.0670.05019.24
5.4.280.0600.04019.25
5.4.270.0630.05019.05
5.4.260.0700.05719.31
5.4.250.0730.04719.14
5.4.240.0670.04319.14
5.4.230.0530.05319.25
5.4.220.0600.05719.04
5.4.210.0570.05319.24
5.4.200.0530.05718.96
5.4.190.0600.07319.21
5.4.180.0430.05319.14
5.4.170.0470.05019.24
5.4.160.0500.04719.23
5.4.150.0470.05319.35
5.4.140.0600.05016.73
5.4.130.0470.05016.43
5.4.120.0500.04716.29
5.4.110.0470.05016.62
5.4.100.0500.05316.70
5.4.90.0600.04716.64
5.4.80.0630.05716.63
5.4.70.0600.05016.22
5.4.60.0500.05716.23
5.4.50.0400.05716.42
5.4.40.0600.05316.59
5.4.30.0670.04316.42
5.4.20.0470.05016.25
5.4.10.0730.05316.38
5.4.00.0530.04715.74

preferences:
59.32 ms | 401 KiB | 5 Q