3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __autoload($class_name) { var_dump('Trying to autload '. $class_name); } class Bar{ public $attr = 'attr'; } $attr = 'attr'; $c = 'BAR'; $foo = $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.60.0140.00018.43
8.3.50.0120.00821.94
8.3.40.0170.00318.75
8.3.30.0070.00718.88
8.3.20.0040.00420.04
8.3.10.0050.00321.96
8.3.00.0030.00522.52
8.2.180.0120.00316.47
8.2.170.0140.00722.96
8.2.160.0140.00719.09
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00417.38
8.2.110.0030.00621.93
8.2.100.0130.00019.45
8.2.90.0080.00019.11
8.2.80.0000.00917.97
8.2.70.0080.00017.22
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0000.00718.03
8.2.30.0000.00817.96
8.2.20.0040.00417.53
8.2.10.0000.00719.39
8.2.00.0070.00017.46
8.1.280.0070.00725.92
8.1.270.0000.00821.98
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0100.00019.07
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0080.00317.23
8.1.190.0000.00817.27
8.1.180.0030.00518.10
8.1.170.0060.00318.50
8.1.160.0040.00422.00
8.1.150.0040.00418.50
8.1.140.0050.00217.32
8.1.130.0040.00417.70
8.1.120.0050.00217.29
8.1.110.0040.00417.26
8.1.100.0000.00817.33
8.1.90.0000.00717.25
8.1.80.0040.00417.24
8.1.70.0000.00617.27
8.1.60.0020.00517.36
8.1.50.0040.00417.33
8.1.40.0040.00417.41
8.1.30.0040.00417.37
8.1.20.0030.00617.41
8.1.10.0000.00817.26
8.1.00.0000.00717.30
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0000.00718.22
8.0.270.0030.00317.12
8.0.260.0030.00516.68
8.0.250.0040.00416.90
8.0.240.0070.00016.91
8.0.230.0000.00716.88
8.0.220.0060.00016.76
8.0.210.0030.00316.86
8.0.200.0060.00016.77
8.0.190.0040.00416.83
8.0.180.0040.00416.79
8.0.170.0040.00416.89
8.0.160.0070.00016.89
8.0.150.0070.00016.71
8.0.140.0060.00316.68
8.0.130.0060.00013.25
8.0.120.0000.00816.66
8.0.110.0080.00016.75
8.0.100.0070.00016.85
8.0.90.0040.00416.93
8.0.80.0080.00816.82
8.0.70.0000.00716.81
8.0.60.0040.00416.77
8.0.50.0040.00416.70
8.0.30.0120.00916.96
8.0.20.0110.00917.40
8.0.10.0040.00416.83
8.0.00.0180.00516.57
7.4.330.0030.00315.00
7.4.320.0000.00616.33
7.4.300.0030.00316.57
7.4.290.0000.00716.45
7.4.280.0050.00316.38
7.4.270.0020.00516.49
7.4.260.0000.00816.62
7.4.250.0040.00416.45
7.4.240.0040.00416.57
7.4.230.0000.00716.43
7.4.220.0160.01016.55
7.4.210.0030.01016.66
7.4.200.0030.00316.58
7.4.190.0070.00016.75
7.4.160.0000.01616.58
7.4.150.0110.00717.40
7.4.140.0090.00917.86
7.4.130.0100.00716.67
7.4.120.0130.00416.43
7.4.110.0080.00816.48
7.4.100.0070.01116.68
7.4.90.0240.00016.39
7.4.80.0140.00319.39
7.4.70.0180.00316.57
7.4.60.0100.01316.47
7.4.50.0040.00416.37
7.4.40.0000.01422.77
7.4.30.0070.01016.56
7.4.00.0060.00814.79
7.3.330.0070.00013.34
7.3.320.0030.00313.35
7.3.310.0030.00316.38
7.3.300.0020.00516.23
7.3.290.0150.00016.33
7.3.280.0050.01016.36
7.3.270.0110.00817.40
7.3.260.0090.01216.55
7.3.250.0100.00916.60
7.3.240.0120.00816.29
7.3.230.0130.00316.39
7.3.210.0070.01016.53
7.3.200.0130.00619.39
7.3.190.0090.00916.41
7.3.180.0070.00716.23
7.3.170.0150.00616.47
7.3.160.0050.01116.46
7.3.120.0100.00615.04
7.2.330.0040.01516.58
7.2.320.0130.00716.63
7.2.310.0100.01316.68
7.2.300.0070.01016.27
7.2.290.0130.01016.69
7.2.60.0060.00916.85
7.2.00.0070.00319.47
7.1.200.0120.00315.84
7.1.100.0100.00317.71
7.1.70.0050.00517.20
7.1.60.0100.01319.82
7.1.50.0110.01116.86
7.1.00.0000.08022.33
7.0.200.0040.01116.81
7.0.140.0030.07321.96
7.0.60.0070.05319.77
7.0.50.0030.07717.86
7.0.40.0030.05720.16
7.0.30.0330.07720.21
7.0.20.0230.03720.25
7.0.10.0100.05020.08
7.0.00.0170.07320.25
5.6.280.0000.07721.15
5.6.210.0170.07720.75
5.6.200.0100.04018.18
5.6.190.0030.06320.52
5.6.180.3170.04020.52
5.6.170.0300.07020.50
5.6.160.0070.07320.54
5.6.150.0100.07718.21
5.6.140.0070.08018.18
5.6.130.0070.07718.21
5.6.120.0100.06020.99
5.6.110.0200.08021.14
5.6.100.0070.08720.99
5.6.90.0030.09321.00
5.6.80.0100.07720.54
5.6.70.0330.07320.50
5.5.350.0030.08720.33
5.5.340.0070.07018.07
5.5.330.0070.08020.37
5.5.320.0200.04720.30
5.5.310.0270.03020.32
5.5.300.0030.04317.98
5.5.290.0030.04318.03
5.5.280.0030.09020.77
5.5.270.0100.08020.84
5.5.260.0230.04320.79
5.5.250.0070.08020.61
5.5.240.0200.07020.16
5.4.450.0170.08719.20
5.4.440.0130.04319.39
5.4.430.0270.06719.27
5.4.420.0200.07719.45
5.4.410.0170.08019.36
5.4.400.0370.06318.95
5.4.390.0300.06719.07
5.4.380.0130.05719.25
5.4.370.0130.05019.31
5.4.360.0200.04319.16
5.4.350.0270.06319.09
5.4.340.0300.06719.08
5.4.320.0330.06719.07
5.4.310.0330.05718.98
5.4.300.0170.07019.24
5.4.290.0200.08019.20
5.4.280.0230.06019.19
5.4.270.0270.05319.13
5.4.260.0330.04719.30
5.4.250.0230.07019.13
5.4.240.0170.07019.15
5.4.230.0230.06719.21
5.4.220.0230.08018.98
5.4.210.0100.06718.93
5.4.200.0170.08019.30
5.4.190.0300.07719.05
5.4.180.0300.06718.95
5.4.170.0230.03319.30
5.4.160.0400.06018.84
5.4.150.0200.08019.14
5.4.140.0200.05316.34
5.4.130.0400.03316.45
5.4.120.0300.06316.50
5.4.110.0230.07016.50
5.4.100.0230.06716.50
5.4.90.0300.06316.34
5.4.80.0130.04016.57
5.4.70.0230.03716.60
5.4.60.0170.03716.51
5.4.50.0170.03316.43
5.4.40.0200.03716.51
5.4.30.0100.04016.30
5.4.20.0130.03316.48
5.4.10.0170.03716.32
5.4.00.0100.03715.84
5.3.290.0200.05314.77
5.3.280.0300.06314.59
5.3.270.0200.04314.61
5.3.260.0330.06714.72
5.3.250.0170.06714.52
5.3.240.0270.05714.53
5.3.230.0300.04714.81
5.3.220.0230.07014.78
5.3.210.0200.06314.48
5.3.200.0370.05314.79
5.3.190.0330.06314.58
5.3.180.0170.05714.64
5.3.170.0170.03714.64
5.3.160.0170.05014.46
5.3.150.0230.04314.56
5.3.140.0070.04314.55
5.3.130.0170.03314.66
5.3.120.0130.03714.46
5.3.110.0130.03714.55
5.3.100.0070.04314.20
5.3.90.0130.03713.99
5.3.80.0170.03314.09
5.3.70.0130.03714.05
5.3.60.0230.02713.91
5.3.50.0170.03014.06
5.3.40.0170.03314.06
5.3.30.0130.03713.98
5.3.20.0130.04013.71
5.3.10.0100.03713.66
5.3.00.0130.03313.61
5.2.170.0070.03312.24
5.2.160.0130.03012.24
5.2.150.0130.03312.24
5.2.140.0130.03012.24
5.2.130.0100.03012.24
5.2.120.0070.03712.24
5.2.110.0170.03012.24
5.2.100.0170.02012.24
5.2.90.0100.02712.24
5.2.80.0100.03712.24
5.2.70.0130.03012.24
5.2.60.0170.03012.24
5.2.50.0100.02712.24
5.2.40.0070.03712.24
5.2.30.0100.02712.24
5.2.20.0170.02712.24
5.2.10.0070.03012.24
5.2.00.0100.03312.24
5.1.60.0100.02312.24
5.1.50.0130.02012.24
5.1.40.0100.02312.24
5.1.30.0070.02712.24
5.1.20.0070.03712.24
5.1.10.0170.04712.24
5.1.00.0200.04012.24
5.0.50.0070.03312.24
5.0.40.0100.03312.24
5.0.30.0070.05312.24
5.0.20.0130.03712.24
5.0.10.0100.02312.24
5.0.00.0100.03312.24
4.4.90.0030.02012.24
4.4.80.0030.01712.24
4.4.70.0070.01312.24
4.4.60.0030.01712.24
4.4.50.0030.01712.24
4.4.40.0000.03012.24
4.4.30.0030.01712.24
4.4.20.0100.01312.24
4.4.10.0070.02712.24
4.4.00.0130.04712.24
4.3.110.0030.02012.24
4.3.100.0130.03012.24
4.3.90.0070.03012.24
4.3.80.0070.05312.24
4.3.70.0070.02312.24
4.3.60.0070.02012.24
4.3.50.0100.03312.24
4.3.40.0070.04312.24
4.3.30.0100.03012.24
4.3.20.0100.01712.24
4.3.10.0130.02012.24
4.3.00.0070.03312.24

preferences:
41.24 ms | 401 KiB | 5 Q