3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const BAR = 'fubar' ; function __get($name) { if ($name == 'BAR') { return 'bob'; } } } $a = new Foo(); echo $a::BAR;

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.0100.00718.00
8.3.50.0110.00521.09
8.3.40.0110.00718.88
8.3.30.0070.00719.09
8.3.20.0040.00420.02
8.3.10.0050.00322.09
8.3.00.0070.00022.39
8.2.180.0100.00316.50
8.2.170.0070.01022.96
8.2.160.0100.00318.92
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0110.00426.16
8.2.120.0080.00019.66
8.2.110.0060.00320.35
8.2.100.0040.00817.72
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0080.00018.05
8.2.50.0040.00418.10
8.2.40.0040.00420.45
8.2.30.0000.00718.10
8.2.20.0040.00417.71
8.2.10.0050.00317.67
8.2.00.0030.00517.54
8.1.280.0070.00725.92
8.1.270.0000.00820.18
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00322.23
8.1.230.0070.00417.52
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0000.00917.23
8.1.190.0030.00617.23
8.1.180.0030.00518.10
8.1.170.0070.00018.57
8.1.160.0050.00222.04
8.1.150.0040.00418.54
8.1.140.0050.00317.36
8.1.130.0040.00417.82
8.1.120.0040.00417.46
8.1.110.0040.00417.43
8.1.100.0040.00417.30
8.1.90.0050.00217.43
8.1.80.0030.00417.48
8.1.70.0030.00317.42
8.1.60.0000.01017.48
8.1.50.0000.00717.54
8.1.40.0000.00717.40
8.1.30.0040.00417.63
8.1.20.0000.00917.57
8.1.10.0040.00417.58
8.1.00.0040.00417.38
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0060.00018.34
8.0.270.0070.00017.29
8.0.260.0030.00316.82
8.0.250.0000.00717.00
8.0.240.0040.00416.95
8.0.230.0040.00416.93
8.0.220.0030.00316.88
8.0.210.0030.00316.74
8.0.200.0000.00716.91
8.0.190.0030.00516.89
8.0.180.0020.00516.86
8.0.170.0080.00016.99
8.0.160.0030.00616.91
8.0.150.0050.00216.67
8.0.140.0000.00716.77
8.0.130.0030.00313.37
8.0.120.0000.00716.74
8.0.110.0000.00716.70
8.0.100.0000.00716.86
8.0.90.0070.00016.71
8.0.80.0150.00016.85
8.0.70.0000.00716.87
8.0.60.0040.00416.84
8.0.50.0040.00416.77
8.0.30.0110.00716.77
8.0.20.0180.00517.40
8.0.10.0050.00216.89
8.0.00.0150.00716.80
7.4.330.0000.00515.00
7.4.320.0000.00616.38
7.4.300.0000.00616.64
7.4.290.0050.00516.48
7.4.280.0030.00316.44
7.4.270.0030.00516.58
7.4.260.0030.00316.46
7.4.250.0040.00416.52
7.4.240.0030.00416.60
7.4.230.0000.00716.30
7.4.220.0030.01716.52
7.4.210.0080.00916.57
7.4.200.0070.00016.59
7.4.190.0030.00316.44
7.4.160.0110.00516.48
7.4.150.0150.00317.40
7.4.140.0090.01017.86
7.4.130.0050.01416.46
7.4.120.0120.00416.44
7.4.110.0080.00816.47
7.4.100.0110.00716.39
7.4.90.0090.00916.36
7.4.80.0100.00719.39
7.4.70.0170.00316.52
7.4.60.0090.00616.63
7.4.50.0060.00316.34
7.4.40.0030.01422.77
7.4.30.0060.01016.25
7.4.00.0070.00715.00
7.3.330.0000.00513.25
7.3.320.0030.00313.15
7.3.310.0030.00316.15
7.3.300.0070.00016.25
7.3.290.0070.00716.29
7.3.280.0090.00616.33
7.3.270.0110.01117.40
7.3.260.0110.00616.23
7.3.250.0060.01016.51
7.3.240.0090.01416.41
7.3.230.0070.01016.39
7.3.210.0110.00816.30
7.3.200.0090.00919.39
7.3.190.0160.00016.60
7.3.180.0100.00616.23
7.3.170.0140.00316.56
7.3.160.0090.00616.31
7.3.120.0090.00614.57
7.3.10.0070.00716.45
7.3.00.0060.00616.63
7.2.330.0110.00616.41
7.2.320.0030.01516.73
7.2.310.0030.01216.63
7.2.300.0100.00716.23
7.2.290.0120.00916.76
7.2.130.0030.01416.79
7.2.120.0030.01016.82
7.2.110.0080.00316.53
7.2.100.0030.00617.07
7.2.90.0000.01316.81
7.2.80.0030.00616.97
7.2.70.0000.01416.85
7.2.60.0080.00416.96
7.2.50.0110.00317.08
7.2.40.0070.00716.76
7.2.30.0030.00616.73
7.2.20.0030.00917.00
7.2.10.0100.00616.88
7.2.00.0070.00618.18
7.1.250.0000.01115.73
7.1.100.0030.00618.09
7.1.70.0040.00717.01
7.1.60.0070.01819.82
7.1.50.0030.01716.95
7.1.00.0000.03722.43
7.0.200.0090.00616.45
7.0.140.0070.06721.95
7.0.60.0070.08720.05
7.0.50.0070.07717.96
7.0.40.0100.04320.24
7.0.30.0270.07720.08
7.0.20.0230.06020.19
7.0.10.0430.07020.23
7.0.00.0100.08320.25
5.6.280.0030.07320.93
5.6.210.0070.06720.65
5.6.200.0070.04718.29
5.6.190.0100.08020.46
5.6.180.3130.04720.47
5.6.170.0230.05720.56
5.6.160.0070.04020.50
5.6.150.0070.08318.21
5.6.140.0170.07718.15
5.6.130.0070.03718.14
5.6.120.0030.07721.12
5.6.110.0130.08021.01
5.6.100.0230.07321.01
5.6.90.0130.07721.10
5.6.80.0130.07320.54
5.6.70.0270.05720.38
5.5.350.0230.06020.53
5.5.340.0070.08317.94
5.5.330.0130.07720.37
5.5.320.0130.05320.35
5.5.310.0270.04320.30
5.5.300.0070.04317.98
5.5.290.0030.09018.02
5.5.280.0100.06720.63
5.5.270.0130.08020.84
5.5.260.0170.07720.85
5.5.250.0100.07020.69
5.5.240.0100.07320.07
5.4.450.0130.06319.59
5.4.440.0200.06019.60
5.4.430.0070.06019.45
5.4.420.0100.06019.47
5.4.410.0370.06019.35
5.4.400.0470.05318.66
5.4.390.0430.07318.63
5.4.380.0270.05318.73
5.4.370.0130.05318.70
5.4.360.0130.05318.75
5.4.350.0130.05718.60
5.4.340.0030.06318.75
5.4.320.0040.05112.50
5.4.310.0080.04312.49
5.4.300.0070.04012.50
5.4.290.0040.04112.50
5.4.280.0080.04012.39
5.4.270.0070.03612.39
5.4.260.0020.04312.39
5.4.250.0030.05319.00
5.4.240.0070.05018.98
5.4.230.0000.05718.79
5.4.220.0130.04718.94
5.4.210.0100.04719.02
5.4.200.0000.05718.65
5.4.190.0030.05318.98
5.4.180.0130.04318.73
5.4.170.0030.05319.05
5.4.160.0100.04718.63
5.4.150.0070.05319.07
5.4.140.0030.05316.55
5.4.130.0070.07016.42
5.4.120.0100.05016.38
5.4.110.0070.05016.56
5.4.100.0000.05316.55
5.4.90.0130.04316.39
5.4.80.0100.06716.39
5.4.70.0070.05016.47
5.4.60.0030.05016.30
5.4.50.0030.05316.46
5.4.40.0100.04316.54
5.4.30.0030.05316.48
5.4.20.0130.04316.43
5.4.10.0070.04716.46
5.4.00.0070.04715.93
5.3.290.0050.03912.80
5.3.280.0070.05014.61
5.3.270.0130.04714.71
5.3.260.0070.05314.50
5.3.250.0000.05714.61
5.3.240.0000.06014.57
5.3.230.0130.05314.68
5.3.220.0170.04014.55
5.3.210.0070.05014.63
5.3.200.0030.05314.70
5.3.190.0000.05714.54
5.3.180.0100.04314.71
5.3.170.0000.05314.54
5.3.160.0070.04714.73
5.3.150.0000.05714.46
5.3.140.0100.06314.71
5.3.130.0100.06314.52
5.3.120.0100.04714.61
5.3.110.0100.04714.70
5.3.100.0070.05014.03
5.3.90.0030.05013.84
5.3.80.0130.04013.99
5.3.70.0100.04314.07
5.3.60.0030.05014.09
5.3.50.0030.05014.17
5.3.40.0130.04014.03
5.3.30.0130.04314.12
5.3.20.0070.04713.69
5.3.10.0200.03713.71
5.3.00.0070.04713.65
5.2.170.0100.03711.13
5.2.160.0100.03711.22
5.2.150.0070.04011.23
5.2.140.0070.03711.11
5.2.130.0030.04011.19
5.2.120.0070.03711.32
5.2.110.0000.04311.28
5.2.100.0030.04011.06
5.2.90.0130.03311.18
5.2.80.0030.04010.91
5.2.70.0030.04311.26
5.2.60.0130.03311.05
5.2.50.0070.03711.04
5.2.40.0100.03311.07
5.2.30.0000.06310.97
5.2.20.0170.03310.91
5.2.10.0130.03011.04
5.2.00.0070.03310.80
5.1.60.0030.03310.05
5.1.50.0030.0339.96
5.1.40.0030.03310.22
5.1.30.0030.03710.51
5.1.20.0130.02710.35
5.1.10.0030.03310.27
5.1.00.0070.03310.16
5.0.50.0030.0308.78
5.0.40.0000.0308.48
5.0.30.0000.0438.22
5.0.20.0030.0308.25
5.0.10.0100.0208.22
5.0.00.0000.0438.15
4.4.90.0030.0207.32
4.4.80.0030.0207.32
4.4.70.0000.0237.32
4.4.60.0030.0207.32
4.4.50.0030.0207.32
4.4.40.0100.0237.32
4.4.30.0000.0207.32
4.4.20.0030.0207.32
4.4.10.0030.0207.32
4.4.00.0070.0277.32
4.3.110.0000.0237.32
4.3.100.0000.0237.32
4.3.90.0030.0207.32
4.3.80.0070.0277.32
4.3.70.0030.0207.32
4.3.60.0000.0207.32
4.3.50.0000.0237.32
4.3.40.0070.0277.32
4.3.30.0000.0237.32
4.3.20.0000.0237.32
4.3.10.0030.0207.32
4.3.00.0100.0176.78

preferences:
44.76 ms | 401 KiB | 5 Q