3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __autoload($class_name) { var_dump('Trying to autload '. $class_name); } class Bar{ public static $atr = 'attr'; } $attr = 'att'; $c = 'BAR'; echo $c::$attr;

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.40.0120.00918.70
8.3.30.0150.00019.05
8.3.20.0000.00720.18
8.3.10.0040.00422.10
8.3.00.0030.00622.36
8.2.170.0070.00722.96
8.2.160.0180.00318.96
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0130.00426.16
8.2.120.0050.00317.50
8.2.110.0030.00621.00
8.2.100.0090.00317.75
8.2.90.0000.00917.50
8.2.80.0080.00018.63
8.2.70.0040.00417.38
8.2.60.0000.00817.91
8.2.50.0080.00018.07
8.2.40.0060.00318.03
8.2.30.0000.00717.91
8.2.20.0070.00017.43
8.2.10.0000.00719.25
8.2.00.0060.00317.45
8.1.270.0040.00422.19
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00619.41
8.1.230.0040.00717.70
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0090.00017.10
8.1.190.0000.00817.41
8.1.180.0040.00418.10
8.1.170.0030.00518.72
8.1.160.0060.00321.89
8.1.150.0040.00418.43
8.1.140.0060.00317.32
8.1.130.0070.00017.71
8.1.120.0000.00817.31
8.1.110.0040.00417.33
8.1.100.0040.00417.33
8.1.90.0040.00317.32
8.1.80.0040.00417.35
8.1.70.0030.00317.30
8.1.60.0040.00417.37
8.1.50.0030.00617.39
8.1.40.0050.00317.36
8.1.30.0040.00417.39
8.1.20.0040.00417.34
8.1.10.0040.00417.39
8.1.00.0050.00217.29
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0070.00018.27
8.0.270.0060.00017.04
8.0.260.0060.00016.80
8.0.250.0040.00416.85
8.0.240.0000.00716.77
8.0.230.0030.00316.77
8.0.220.0000.00716.82
8.0.210.0030.00316.65
8.0.200.0000.00616.74
8.0.190.0000.00816.87
8.0.180.0060.00316.85
8.0.170.0050.00316.79
8.0.160.0040.00416.91
8.0.150.0030.00316.71
8.0.140.0060.00316.71
8.0.130.0000.00513.20
8.0.120.0040.00416.73
8.0.110.0040.00416.80
8.0.100.0040.00416.70
8.0.90.0000.00716.63
8.0.80.0000.01716.77
8.0.70.0000.00716.84
8.0.60.0080.00016.85
8.0.50.0070.00016.63
8.0.30.0110.00916.97
8.0.20.0100.01117.40
8.0.10.0040.00416.75
8.0.00.0090.01116.65
7.4.330.0000.00515.00
7.4.320.0000.00616.52
7.4.300.0030.00316.44
7.4.290.0030.00316.40
7.4.280.0000.01016.41
7.4.270.0040.00416.51
7.4.260.0000.00716.57
7.4.250.0040.00416.31
7.4.240.0030.00516.53
7.4.230.0030.00316.52
7.4.220.0060.01316.50
7.4.210.0080.00916.61
7.4.200.0000.00716.59
7.4.190.0070.00016.68
7.4.160.0080.00816.41
7.4.150.0150.00417.40
7.4.140.0060.01217.86
7.4.130.0120.00616.52
7.4.120.0130.00516.45
7.4.110.0120.00416.35
7.4.100.0070.01316.34
7.4.90.0070.01016.57
7.4.80.0130.00319.39
7.4.70.0070.01016.72
7.4.60.0130.00616.45
7.4.50.0040.00416.49
7.4.40.0000.01422.77
7.4.30.0110.00516.73
7.4.00.0070.01114.87
7.3.330.0060.00013.35
7.3.320.0050.00013.12
7.3.310.0000.00716.38
7.3.300.0050.00316.27
7.3.290.0040.01216.31
7.3.280.0090.00816.31
7.3.270.0070.01117.40
7.3.260.0070.01216.39
7.3.250.0110.00916.45
7.3.240.0060.01216.51
7.3.230.0070.01016.39
7.3.210.0120.00616.47
7.3.200.0090.00919.39
7.3.190.0060.01016.60
7.3.180.0090.00816.29
7.3.170.0130.00316.48
7.3.160.0080.01616.46
7.3.120.0080.00714.93
7.3.110.0090.00814.81
7.3.100.0060.01114.80
7.3.90.0030.01014.76
7.3.80.0040.01014.84
7.3.70.0040.00914.87
7.3.60.0080.00614.61
7.3.50.0070.01014.71
7.3.40.0090.00414.89
7.3.30.0090.00214.81
7.3.20.0030.01016.62
7.3.10.0070.00716.70
7.3.00.0060.00816.60
7.2.330.0080.01416.59
7.2.320.0090.00916.34
7.2.310.0130.01016.70
7.2.300.0090.00916.54
7.2.290.0100.00716.47
7.2.250.0090.00914.88
7.2.240.0060.01314.86
7.2.230.0070.01015.05
7.2.220.0030.00914.97
7.2.210.0020.01114.75
7.2.200.0050.00914.94
7.2.190.0100.00614.74
7.2.180.0070.00814.95
7.2.170.0060.01114.86
7.2.60.0000.00716.56
7.2.00.0160.00919.09
7.1.330.0060.00815.44
7.1.320.0070.00515.53
7.1.310.0050.00915.77
7.1.300.0100.00515.73
7.1.290.0100.00315.60
7.1.280.0030.00815.77
7.1.270.0050.00715.70
7.1.260.0050.00915.58
7.1.200.0000.01215.63
7.1.100.0030.01017.72
7.1.70.0000.00816.80
7.1.60.0120.01219.82
7.1.50.0080.01516.87
7.1.00.0070.07022.41
7.0.200.0040.00916.84
7.0.140.0030.07322.07
7.0.60.0130.06719.81
7.0.50.0100.07717.89
7.0.40.0030.05020.11
7.0.30.0270.05320.25
7.0.20.0270.05020.19
7.0.10.0070.09020.08
7.0.00.0070.06320.29
5.6.280.0030.07321.10
5.6.210.0030.07320.63
5.6.200.0070.08318.28
5.6.190.0100.09020.55
5.6.180.3200.04020.61
5.6.170.0330.07320.47
5.6.160.0130.07720.46
5.6.150.0030.04318.27
5.6.140.0130.03718.19
5.6.130.0030.04718.12
5.6.120.0100.06721.15
5.6.110.0070.06720.98
5.6.100.0070.07721.00
5.6.90.0100.06021.02
5.6.80.0100.07720.31
5.6.70.4570.04020.53
5.5.350.0300.07320.45
5.5.340.0070.05318.01
5.5.330.0030.04320.27
5.5.320.3800.04320.38
5.5.310.0130.04720.24
5.5.300.0030.06717.99
5.5.290.0030.05718.03
5.5.280.0030.08720.74
5.5.270.0000.05720.96
5.5.260.0100.09020.84
5.5.250.0070.04020.58
5.5.240.0170.07720.23
5.4.450.0130.07319.47
5.4.440.0200.06319.33
5.4.430.0200.05319.51
5.4.420.0200.06319.38
5.4.410.0130.07319.32
5.4.400.0070.05318.81
5.4.390.0100.07318.78
5.4.380.0230.07018.61
5.4.370.0130.05318.75
5.4.360.0130.05018.50
5.4.350.0230.04318.61
5.4.340.0130.05318.75
5.4.320.0030.03912.51
5.4.310.0060.04812.50
5.4.300.0060.04212.50
5.4.290.0080.03712.50
5.4.280.0090.03512.40
5.4.270.0130.05318.91
5.4.260.0200.05018.83
5.4.250.0070.07019.04
5.4.240.0200.04019.07
5.4.230.0200.06319.00
5.4.220.0100.05719.00
5.4.210.0100.05718.82
5.4.200.0030.06019.14
5.4.190.0130.06319.22
5.4.180.0130.05319.13
5.4.170.0170.05318.84
5.4.160.0130.04719.08
5.4.150.0130.07318.96
5.4.140.0030.06316.68
5.4.130.0130.05316.77
5.4.120.0100.07316.56
5.4.110.0030.05716.54
5.4.100.0030.07016.75
5.4.90.0100.07016.46
5.4.80.0070.05016.46
5.4.70.0130.06716.62
5.4.60.0070.07016.39
5.4.50.0100.06016.54
5.4.40.0100.05316.69
5.4.30.0030.05716.61
5.4.20.0100.07716.48
5.4.10.0000.06716.61
5.4.00.0270.05015.95
5.3.290.0030.04412.80
5.3.280.0130.05714.64
5.3.270.0070.06014.66
5.3.260.0170.07714.65
5.3.250.0070.05014.72
5.3.240.0070.06014.90
5.3.230.0100.05014.67
5.3.220.0130.07314.69
5.3.210.0030.05714.69
5.3.200.0070.07014.75
5.3.190.0130.04714.62
5.3.180.0130.05014.44
5.3.170.0200.06014.85
5.3.160.0100.05314.75
5.3.150.0100.05714.61
5.3.140.0100.07014.61
5.3.130.0170.07014.84
5.3.120.0230.04714.60
5.3.110.0030.05714.76
5.3.100.0100.06014.15
5.3.90.0030.07314.07
5.3.80.0130.04714.23
5.3.70.0100.07014.31
5.3.60.0100.07014.05
5.3.50.0130.06014.16
5.3.40.0100.07014.14
5.3.30.0130.06714.20
5.3.20.0130.06013.98
5.3.10.0130.04313.83
5.3.00.0070.08013.84
5.2.170.0100.05711.02
5.2.160.0100.03711.13
5.2.150.0130.03311.36
5.2.140.0070.04311.31
5.2.130.0230.04311.32
5.2.120.0070.04311.29
5.2.110.0170.03311.36
5.2.100.0130.04711.09
5.2.90.0130.03311.38
5.2.80.0130.05311.08
5.2.70.0100.04311.14
5.2.60.0030.06011.35
5.2.50.0030.04710.90
5.2.40.0070.05011.21
5.2.30.0000.05711.25
5.2.20.0100.05311.17
5.2.10.0100.04310.91
5.2.00.0100.05310.59
5.1.60.0070.0309.97
5.1.50.0170.0279.98
5.1.40.0130.03010.05
5.1.30.0000.06010.62
5.1.20.0070.03710.64
5.1.10.0070.04310.16
5.1.00.0200.0409.95
5.0.50.0030.0408.43
5.0.40.0030.0408.59
5.0.30.0070.0478.31
5.0.20.0030.0278.29
5.0.10.0100.0278.32
5.0.00.0030.0578.36
4.4.90.0070.0277.20
4.4.80.0030.0237.20
4.4.70.0030.0307.19
4.4.60.0030.0237.19
4.4.50.0000.0337.19
4.4.40.0130.0377.19
4.4.30.0030.0237.19
4.4.20.0070.0307.19
4.4.10.0030.0307.18
4.4.00.0000.0407.14
4.3.110.0030.0237.09
4.3.100.0070.0277.04
4.3.90.0000.0336.97
4.3.80.0070.0336.92
4.3.70.0030.0206.89
4.3.60.0070.0206.87
4.3.50.0070.0236.86
4.3.40.0070.0336.85
4.3.30.0000.0236.83
4.3.20.0030.0236.82
4.3.10.0070.0206.80
4.3.00.0030.0206.88

preferences:
40.79 ms | 400 KiB | 5 Q