3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function __construct() { $this->test = 'meow'; } } function error_handler() { $GLOBALS['test'] = new test(); return true; } set_error_handler("error_handler"); // test one class a {} $a = new a; $a->undefined .= 'test'; echo isset($a->undefined) ? 'true' : 'false'; var_dump($a); var_dump($GLOBALS['test']); echo "\n"; // test two $b .= 'test'; echo isset($b) ? 'true' : 'false'; echo "\n";

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.00718.55
8.3.50.0130.00821.96
8.3.40.0070.00718.50
8.3.30.0100.00719.04
8.3.20.0070.00020.11
8.3.10.0080.00020.48
8.3.00.0030.00717.50
8.2.180.0000.01416.75
8.2.170.0040.01122.96
8.2.160.0070.00720.39
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00022.27
8.2.110.0060.00320.47
8.2.100.0070.00417.97
8.2.90.0000.00919.40
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00918.03
8.2.30.0000.00719.43
8.2.20.0040.00417.86
8.2.10.0000.00718.00
8.2.00.0000.00717.90
8.1.280.0170.00025.92
8.1.270.0040.00423.83
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.83
8.1.230.0070.00418.89
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0050.00418.77
8.1.160.0050.00222.00
8.1.150.0000.00718.75
8.1.140.0070.00017.54
8.1.130.0030.00317.82
8.1.120.0070.00017.37
8.1.110.0040.00417.46
8.1.100.0050.00317.42
8.1.90.0070.00017.38
8.1.80.0000.00717.47
8.1.70.0050.00317.41
8.1.60.0030.00617.46
8.1.50.0040.00417.40
8.1.40.0030.00617.57
8.1.30.0050.00317.53
8.1.20.0000.00717.65
8.1.10.0030.00517.45
8.1.00.0070.00017.46
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0030.00318.36
8.0.270.0000.00717.14
8.0.260.0030.00317.27
8.0.250.0040.00416.93
8.0.240.0030.00616.89
8.0.230.0030.00316.91
8.0.220.0000.00716.98
8.0.210.0050.00317.00
8.0.200.0000.00716.90
8.0.190.0030.00617.02
8.0.180.0000.00716.85
8.0.170.0070.00017.02
8.0.160.0000.00716.84
8.0.150.0030.00316.79
8.0.140.0040.00416.95
8.0.130.0050.00013.41
8.0.120.0000.00816.99
8.0.110.0000.00717.00
8.0.100.0040.00416.82
8.0.90.0040.00416.79
8.0.80.0040.01116.91
8.0.70.0040.00416.75
8.0.60.0050.00317.02
8.0.50.0040.00416.93
8.0.30.0110.01017.25
8.0.20.0080.01217.40
8.0.10.0040.00416.92
8.0.00.0090.01116.71
7.4.330.0050.00015.00
7.4.320.0000.00616.52
7.4.300.0000.00616.52
7.4.290.0000.00716.67
7.4.280.0000.00716.59
7.4.270.0000.00716.63
7.4.260.0000.00816.45
7.4.250.0050.00216.42
7.4.240.0030.00516.46
7.4.230.0040.00416.50
7.4.220.0110.01416.65
7.4.210.0060.00916.55
7.4.200.0040.00416.63
7.4.160.0080.00816.55
7.4.150.0070.01317.40
7.4.140.0120.00917.86
7.4.130.0150.00516.69
7.4.120.0110.00816.47
7.4.110.0150.00616.50
7.4.100.0150.00316.45
7.4.90.0030.01316.66
7.4.80.0180.00019.39
7.4.70.0110.00616.56
7.4.60.0000.01516.62
7.4.50.0030.00516.51
7.4.40.0100.00716.52
7.4.30.0110.01216.72
7.4.00.0060.00614.73
7.3.330.0030.00313.21
7.3.320.0040.00413.39
7.3.310.0030.00516.46
7.3.300.0040.00416.39
7.3.290.0030.01216.43
7.3.280.0070.00916.42
7.3.270.0150.00617.40
7.3.260.0130.00316.42
7.3.250.0080.01316.51
7.3.240.0090.00916.49
7.3.230.0100.00616.54
7.3.210.0090.00916.58
7.3.200.0000.01719.39
7.3.190.0100.01016.41
7.3.180.0070.01416.29
7.3.170.0150.00816.48
7.3.160.0160.00016.50
7.3.120.0030.01314.99
7.3.110.0100.00615.08
7.3.100.0090.00614.71
7.3.90.0090.00314.95
7.3.80.0030.01015.07
7.3.70.0060.00914.95
7.3.60.0100.00314.73
7.3.50.0080.00414.69
7.3.40.0090.00314.96
7.3.30.0090.00014.65
7.3.20.0030.00616.73
7.3.10.0060.00916.59
7.3.00.0060.00616.48
7.2.330.0170.00716.78
7.2.320.0110.00816.77
7.2.310.0140.01016.79
7.2.300.0130.00916.78
7.2.290.0100.01016.82
7.2.240.0090.00615.25
7.2.230.0030.01515.23
7.2.220.0060.00915.03
7.2.210.0030.00814.92
7.2.200.0060.00914.99
7.2.190.0040.01114.70
7.2.180.0140.00015.08
7.2.170.0140.00015.16
7.2.160.0070.00715.04
7.2.150.0030.01317.03
7.2.140.0040.00716.95
7.2.130.0030.01217.06
7.2.120.0000.01516.68
7.2.110.0070.00317.13
7.2.100.0000.01616.90
7.2.90.0030.01316.70
7.2.80.0090.00617.04
7.2.70.0060.00916.90
7.2.60.0060.00817.03
7.2.50.0110.00017.13
7.2.40.0100.00716.98
7.2.30.0060.00616.68
7.2.20.0060.00916.72
7.2.10.0030.01316.91
7.2.00.0090.00916.79
7.1.330.0060.00615.76
7.1.320.0070.00715.87
7.1.310.0090.00915.77
7.1.300.0060.00615.78
7.1.290.0000.01215.75
7.1.280.0030.01315.67
7.1.270.0070.00715.81
7.1.260.0060.00915.88
7.1.250.0090.00615.93
7.1.200.0000.01515.77
7.1.70.0070.00717.37
7.1.60.0070.01719.61
7.1.50.0120.00916.93
7.1.00.0100.07022.31
7.0.200.0050.00316.95
7.0.140.0070.07022.12
7.0.60.0070.08720.03
7.0.50.0030.04017.83
7.0.40.0070.06720.22
7.0.30.0330.06020.12
7.0.20.0230.08020.38
7.0.10.0030.08020.14
7.0.00.0030.09320.16
5.6.280.0000.07721.07
5.6.210.0070.07020.66
5.6.200.0100.04318.18
5.6.190.0070.04320.63
5.6.180.0500.07020.34
5.6.170.0130.06320.61
5.6.160.0070.06020.59
5.6.150.0130.05318.28
5.6.140.0100.06718.21
5.6.130.0070.07318.16
5.6.120.0070.08720.85
5.6.110.0070.04021.00
5.6.100.0030.06021.12
5.6.90.0000.05020.89
5.6.80.0000.06720.52
5.5.350.0270.07720.43
5.5.340.0100.08017.98
5.5.330.0100.08320.27
5.5.320.0330.06720.36
5.5.310.0270.08720.51
5.5.300.0100.05017.97
5.5.290.0070.08017.95
5.5.280.0070.07020.85
5.5.270.0170.08320.89
5.5.260.0170.07020.94
5.5.250.0030.04720.61
5.5.240.0230.06320.28
5.4.450.0230.04319.32
5.4.440.0400.04719.47
5.4.430.0330.04319.41
5.4.420.0630.03319.52
5.4.410.0370.03719.33
5.4.400.0270.04318.86
5.4.390.0130.04019.13
5.4.380.0270.05718.51
5.4.370.1000.04718.59
5.4.360.0330.05718.51
5.4.350.0300.05318.57
5.4.340.0270.07018.77
5.4.320.0100.04212.51
5.4.310.0050.04212.50
5.4.300.0070.03812.50
5.4.290.0060.04112.50
5.4.280.0070.04312.40
5.4.270.0070.04112.41
5.4.260.0060.03812.40
5.4.250.0070.04912.40
5.4.240.0070.04312.40
5.4.230.0060.04012.39
5.4.220.0010.04112.39
5.4.210.0070.03512.39
5.4.200.0040.04112.40
5.4.190.0080.03512.39
5.4.180.0040.03712.39
5.4.170.0050.03712.40
5.4.160.0060.03512.39
5.4.150.0070.03512.39
5.4.140.0110.03212.07
5.4.130.0090.03112.06
5.4.120.0050.03612.02
5.4.110.0040.03712.02
5.4.100.0050.03612.02
5.4.90.0050.03812.02
5.4.80.0080.03412.02
5.4.70.0100.03112.02
5.4.60.0060.03312.01
5.4.50.0070.04112.02
5.4.40.0050.03412.00
5.4.30.0030.03812.00
5.4.20.0030.03712.00
5.4.10.0040.03612.00
5.4.00.0050.03611.48
5.3.290.0070.04012.80
5.3.280.0060.03712.71
5.3.270.0070.03812.73
5.3.260.0080.03612.72
5.3.250.0060.03912.72
5.3.240.0090.03612.72
5.3.230.0090.04112.71
5.3.220.0070.03412.68
5.3.210.0060.04712.68
5.3.200.0080.03812.68
5.3.190.0070.04012.68
5.3.180.0060.03512.68
5.3.170.0060.03712.67
5.3.160.0050.03712.67
5.3.150.0070.03712.67
5.3.140.0060.03712.66
5.3.130.0030.04212.66
5.3.120.0080.03712.66
5.3.110.0050.04012.65
5.3.100.0060.04112.12
5.3.90.0050.03612.11
5.3.80.0060.03512.09
5.3.70.0070.04212.09
5.3.60.0070.03612.08
5.3.50.0040.04112.03
5.3.40.0060.03612.03
5.3.30.0060.03411.99
5.3.20.0070.03311.77
5.3.10.0040.03611.73
5.3.00.0050.03511.72
5.2.170.0030.0329.22
5.2.160.0050.0289.23
5.2.150.0040.0319.22
5.2.140.0060.0299.22
5.2.130.0040.0319.18
5.2.120.0020.0319.18
5.2.110.0040.0299.19
5.2.100.0050.0279.18
5.2.90.0050.0289.18
5.2.80.0060.0309.18
5.2.70.0040.0309.18
5.2.60.0060.0289.13
5.2.50.0030.0319.10
5.2.40.0040.0289.07
5.2.30.0040.0299.05
5.2.20.0070.0269.04
5.2.10.0060.0258.95
5.2.00.0040.0298.81
5.1.60.0070.0218.09
5.1.50.0040.0248.09
5.1.40.0050.0228.07
5.1.30.0050.0258.42
5.1.20.0030.0288.45
5.1.10.0040.0308.16
5.1.00.0040.0258.17
5.0.50.0030.0206.64
5.0.40.0030.0196.50
5.0.30.0050.0296.32
5.0.20.0040.0186.28
5.0.10.0040.0296.27
5.0.00.0040.0326.25
4.4.90.0030.0154.78
4.4.80.0010.0164.75
4.4.70.0060.0174.75
4.4.60.0030.0194.76
4.4.50.0030.0144.77
4.4.40.0030.0244.71
4.4.30.0030.0234.76
4.4.20.0030.0234.84
4.4.10.0030.0144.85
4.4.00.0040.0244.76
4.3.110.0010.0164.67
4.3.100.0030.0144.66
4.3.90.0020.0154.64
4.3.80.0050.0214.58
4.3.70.0030.0144.63
4.3.60.0030.0144.62
4.3.50.0050.0204.63
4.3.40.0030.0254.54
4.3.30.0030.0163.30
4.3.20.0050.0173.28
4.3.10.0040.0143.23
4.3.00.0030.01716.72

preferences:
53.23 ms | 401 KiB | 5 Q