3v4l.org

run code in 300+ PHP versions simultaneously
<?php class bla { static $baz = "real property"; } $foo = array(); $foo['bar'] = "bla"; echo $foo['bar']::$baz;

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.70.0130.00718.18
8.3.60.0110.00416.50
8.3.50.0180.00321.20
8.3.40.0070.00718.63
8.3.30.0110.00418.60
8.3.20.0000.00720.39
8.3.10.0000.00823.65
8.3.00.0050.00223.66
8.2.180.0100.02016.50
8.2.170.0100.00722.96
8.2.160.0130.00720.39
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00021.17
8.2.120.0040.00426.35
8.2.110.0000.00821.07
8.2.100.0070.00717.89
8.2.90.0030.00519.39
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0070.00018.05
8.2.50.0060.00318.07
8.2.40.0050.00320.47
8.2.30.0040.00419.38
8.2.20.0030.00617.67
8.2.10.0040.00418.03
8.2.00.0040.00418.00
8.1.280.0180.00425.92
8.1.270.0100.00023.99
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0060.00322.61
8.1.230.0060.00619.01
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0060.00317.36
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0000.00818.43
8.1.160.0070.00020.63
8.1.150.0000.00718.77
8.1.140.0030.00519.60
8.1.130.0000.00717.66
8.1.120.0040.00417.31
8.1.110.0000.00717.39
8.1.100.0070.00017.39
8.1.90.0080.00017.28
8.1.80.0040.00417.26
8.1.70.0030.00317.30
8.1.60.0030.00617.50
8.1.50.0030.00617.43
8.1.40.0060.00617.43
8.1.30.0040.00417.66
8.1.20.0000.00717.57
8.1.10.0000.00717.62
8.1.00.0000.00717.38
8.0.300.0000.00718.77
8.0.290.0050.00316.63
8.0.280.0030.00318.45
8.0.270.0070.00017.25
8.0.260.0040.00417.16
8.0.250.0030.00316.84
8.0.240.0030.00316.86
8.0.230.0030.00316.85
8.0.220.0030.00616.82
8.0.210.0030.00416.70
8.0.200.0000.00616.91
8.0.190.0080.00016.93
8.0.180.0000.00716.75
8.0.170.0040.00416.87
8.0.160.0030.00316.87
8.0.150.0050.00316.66
8.0.140.0030.00316.80
8.0.130.0060.00013.30
8.0.120.0000.00816.69
8.0.110.0000.00716.81
8.0.100.0040.00416.72
8.0.90.0070.00016.66
8.0.80.0080.00716.89
8.0.70.0040.00416.84
8.0.60.0070.00016.87
8.0.50.0000.00816.71
8.0.30.0050.01417.13
8.0.20.0050.01417.40
8.0.10.0000.00717.00
8.0.00.0100.00816.68
7.4.330.0000.00516.84
7.4.320.0000.00716.50
7.4.300.0030.00516.52
7.4.290.0070.00016.54
7.4.280.0040.00416.51
7.4.270.0070.00016.44
7.4.260.0070.00016.52
7.4.250.0000.00716.52
7.4.240.0000.00816.50
7.4.230.0000.00716.53
7.4.220.0060.00916.45
7.4.210.0030.01016.37
7.4.200.0030.00316.52
7.4.160.0060.00916.36
7.4.150.0120.00617.40
7.4.140.0080.01317.86
7.4.130.0080.01716.37
7.4.120.0140.00516.41
7.4.110.0070.01016.51
7.4.100.0100.01316.53
7.4.90.0120.00616.57
7.4.80.0070.01119.39
7.4.70.0060.01116.49
7.4.60.0110.01116.35
7.4.50.0030.01316.29
7.4.40.0060.00916.59
7.4.30.0150.00616.53
7.4.00.0030.01414.66
7.3.330.0000.00613.29
7.3.320.0000.00513.11
7.3.310.0030.00316.30
7.3.300.0000.00716.11
7.3.290.0110.00516.33
7.3.280.0080.01016.27
7.3.270.0030.01417.40
7.3.260.0090.01516.31
7.3.240.0120.00516.30
7.3.230.0080.00916.39
7.3.210.0070.01016.27
7.3.200.0080.00819.39
7.3.190.0070.01016.38
7.3.180.0110.00516.38
7.3.170.0110.01016.49
7.3.160.0150.00816.25
7.3.10.0160.00316.32
7.3.00.0150.00316.10
7.2.330.0180.00516.59
7.2.320.0180.00016.45
7.2.310.0110.00716.79
7.2.300.0140.00416.77
7.2.290.0110.00616.74
7.2.130.0130.00916.45
7.2.120.0100.00716.75
7.2.110.0170.00716.37
7.2.100.0130.00616.37
7.2.90.0080.01216.74
7.2.80.0170.00716.39
7.2.70.0120.01216.66
7.2.60.0160.00516.30
7.2.50.0190.00816.46
7.2.40.0220.00616.10
7.2.30.0200.01116.62
7.2.20.0140.01416.69
7.2.10.0210.00716.45
7.2.00.0100.01217.94
7.1.250.0100.00715.61
7.1.100.0070.00717.73
7.1.70.0040.00416.89
7.1.60.0140.01019.40
7.1.50.0060.01216.98
7.1.00.0000.08022.45
7.0.200.0000.00916.73
7.0.60.0100.08021.72
7.0.50.0030.08717.86
7.0.40.0070.06020.11
7.0.30.0200.04320.30
7.0.20.0230.07320.24
7.0.10.0130.08320.17
7.0.00.0070.09020.07
5.6.280.0030.06721.12
5.6.210.0130.06320.60
5.6.200.0030.06718.29
5.6.190.0100.03720.48
5.6.180.0300.04320.65
5.6.170.0300.07320.76
5.6.160.0000.06320.50
5.6.150.0170.08018.25
5.6.140.0030.05018.23
5.6.130.0030.07018.30
5.6.120.0070.06021.14
5.6.110.0130.08021.01
5.6.100.0100.08321.12
5.6.90.0130.04721.13
5.6.80.0130.06020.51
5.5.350.4170.03720.43
5.5.340.0070.05018.04
5.5.330.0100.08320.21
5.5.320.0530.05320.35
5.5.310.0170.07020.29
5.5.300.0100.05317.95
5.5.290.0070.04317.96
5.5.280.0070.08020.80
5.5.270.0070.03720.63
5.5.260.0100.08320.95
5.5.250.0000.09320.60
5.5.240.0130.07720.15

preferences:
57.6 ms | 401 KiB | 5 Q