3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo; class bar { public static function baz() { return 'lol'; } } $cls = 'bar'; echo $cls::baz(); $cls = 'foo\\bar'; echo $cls::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.60.0140.00716.75
8.3.50.0100.00921.07
8.3.40.0040.01418.67
8.3.30.0110.00418.63
8.3.20.0040.00420.19
8.3.10.0070.00021.73
8.3.00.0040.00423.56
8.2.180.0150.00025.92
8.2.170.0150.00018.95
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0080.00019.64
8.2.120.0050.00226.35
8.2.110.0000.01022.28
8.2.100.0070.00417.79
8.2.90.0040.00418.09
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0090.00017.80
8.2.50.0080.00018.07
8.2.40.0000.00922.15
8.2.30.0040.00420.62
8.2.20.0040.00417.75
8.2.10.0040.00418.11
8.2.00.0050.00318.08
8.1.280.0070.00725.92
8.1.270.0110.00023.83
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0130.00322.19
8.1.230.0040.00720.88
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0000.00817.25
8.1.180.0070.00018.10
8.1.170.0050.00318.59
8.1.160.0050.00320.70
8.1.150.0000.00818.75
8.1.140.0080.00019.44
8.1.130.0030.00317.63
8.1.120.0050.00217.35
8.1.110.0040.00417.36
8.1.100.0000.00817.39
8.1.90.0040.00417.35
8.1.80.0040.00417.40
8.1.70.0000.00717.42
8.1.60.0000.00717.51
8.1.50.0030.00617.41
8.1.40.0000.00817.54
8.1.30.0000.00817.61
8.1.20.0050.00317.54
8.1.10.0030.00517.40
8.1.00.0080.00017.50
8.0.300.0040.00420.08
8.0.290.0000.00716.63
8.0.280.0000.00718.33
8.0.270.0000.00717.21
8.0.260.0030.00317.09
8.0.250.0030.00316.96
8.0.240.0030.00517.00
8.0.230.0040.00416.94
8.0.220.0030.00316.88
8.0.210.0050.00316.89
8.0.200.0080.00016.93
8.0.190.0040.00416.95
8.0.180.0000.00716.89
8.0.170.0030.00516.86
8.0.160.0040.00316.87
8.0.150.0070.00016.85
8.0.140.0060.00316.81
8.0.130.0000.00613.35
8.0.120.0000.00816.85
8.0.110.0000.00716.95
8.0.100.0040.00416.71
8.0.90.0030.00516.86
8.0.80.0110.00416.90
8.0.70.0020.00516.77
8.0.60.0040.00416.83
8.0.50.0040.00416.77
8.0.30.0070.00917.02
8.0.20.0130.00717.40
8.0.10.0000.00817.05
8.0.00.0060.01216.76
7.4.330.0000.00516.84
7.4.320.0030.00316.29
7.4.300.0030.00316.41
7.4.290.0050.00516.51
7.4.280.0100.00016.54
7.4.270.0070.00016.49
7.4.260.0040.00416.55
7.4.250.0040.00416.47
7.4.240.0040.00416.46
7.4.230.0000.00716.57
7.4.220.0120.01216.43
7.4.210.0130.00316.46
7.4.200.0030.00316.70
7.4.160.0080.00816.54
7.4.150.0060.01817.40
7.4.140.0090.01117.86
7.4.130.0110.00616.57
7.4.120.0120.00516.47
7.4.110.0030.01416.55
7.4.100.0140.00316.43
7.4.90.0110.00716.50
7.4.80.0090.01319.39
7.4.70.0070.01416.56
7.4.60.0090.00616.50
7.4.50.0060.00616.21
7.4.40.0080.00816.63
7.4.30.0030.01316.40
7.4.00.0040.00414.59
7.3.330.0050.00013.34
7.3.320.0030.00313.29
7.3.310.0000.00716.23
7.3.300.0000.00716.32
7.3.290.0060.01116.35
7.3.280.0080.00816.34
7.3.270.0120.00617.40
7.3.260.0060.01216.57
7.3.250.0110.00816.29
7.3.240.0130.00516.40
7.3.230.0030.01316.45
7.3.210.0110.00716.29
7.3.200.0180.00619.39
7.3.190.0100.01016.69
7.3.180.0060.01516.35
7.3.170.0060.00916.61
7.3.160.0090.00616.48
7.3.120.0110.00414.82
7.3.110.0090.00614.62
7.3.100.0110.00314.60
7.3.90.0070.00715.05
7.3.80.0100.00714.81
7.3.70.0040.01114.71
7.3.60.0000.01014.89
7.3.50.0030.00714.91
7.3.40.0000.01314.85
7.3.30.0110.00414.79
7.3.20.0130.00316.72
7.3.10.0110.00416.41
7.3.00.0110.00316.71
7.2.330.0030.01416.61
7.2.320.0100.00616.52
7.2.310.0150.00616.38
7.2.300.0070.01016.61
7.2.290.0060.01316.66
7.2.240.0140.00314.90
7.2.230.0070.00714.68
7.2.220.0000.01714.82
7.2.210.0040.00715.03
7.2.200.0040.00714.72
7.2.190.0070.00714.79
7.2.180.0000.01815.00
7.2.170.0040.00714.95
7.2.160.0110.00014.94
7.2.150.0030.01016.99
7.2.140.0070.01116.66
7.2.130.0090.00916.57
7.2.120.0110.00316.68
7.2.110.0070.01116.75
7.2.100.0000.01116.79
7.2.90.0030.01216.43
7.2.80.0060.00616.80
7.2.70.0000.01716.68
7.2.60.0080.00516.81
7.2.50.0130.00316.75
7.2.40.0120.00016.86
7.2.30.0080.00816.89
7.2.20.0150.00016.60
7.2.10.0030.01016.72
7.2.00.0050.00918.02
7.1.330.0000.01415.63
7.1.320.0040.00815.76
7.1.310.0060.01015.51
7.1.300.0040.01115.50
7.1.290.0110.00715.49
7.1.280.0080.00815.65
7.1.270.0000.01415.70
7.1.260.0120.00315.42
7.1.250.0070.00415.71
7.1.200.0070.00715.67
7.1.100.0060.00618.07
7.1.70.0000.01017.22
7.1.60.0090.01219.20
7.1.50.0080.00416.87
7.1.00.0000.08022.37
7.0.200.0000.00816.77
7.0.60.0000.06021.83
7.0.50.0070.03717.84
7.0.40.0170.07720.11
7.0.30.0400.06720.07
7.0.20.0200.07020.26
7.0.10.0000.04720.12
7.0.00.0100.05320.07
5.6.280.0030.03021.05
5.6.210.0030.04020.63
5.6.200.0030.04018.21
5.6.190.0030.04020.65
5.6.180.0670.03020.48
5.6.170.0130.05320.54
5.6.160.0100.07320.50
5.6.150.0170.07018.19
5.6.140.0100.04718.18
5.6.130.0030.05018.25
5.6.120.0030.08721.12
5.6.110.0070.08020.89
5.6.100.0130.04721.00
5.6.90.0030.04321.13
5.6.80.0070.07720.51
5.5.350.0200.07720.42
5.5.340.0070.05018.09
5.5.330.0030.04020.44
5.5.320.0570.04020.31
5.5.310.0270.06720.55
5.5.300.0070.05718.06
5.5.290.0070.08017.96
5.5.280.0000.04720.80
5.5.270.0100.07320.94
5.5.260.0070.08320.65
5.5.250.0130.07020.70
5.5.240.0030.06020.12

preferences:
35.15 ms | 401 KiB | 5 Q