3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { protected $foo = 1; } function error_handler() { $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'; 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.40.0140.00018.78
8.3.30.0090.00619.04
8.3.20.0050.00320.34
8.3.10.0090.00020.51
8.3.00.0040.00817.50
8.2.170.0070.00722.96
8.2.160.0030.01020.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00022.00
8.2.110.0030.00622.22
8.2.100.0080.00318.03
8.2.90.0000.00819.05
8.2.80.0030.00517.97
8.2.70.0000.00917.63
8.2.60.0030.00517.93
8.2.50.0060.00318.07
8.2.40.0060.00318.16
8.2.30.0040.00419.38
8.2.20.0000.00717.94
8.2.10.0000.00818.08
8.2.00.0050.00317.80
8.1.270.0090.00023.87
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00023.79
8.1.230.0080.00419.22
8.1.220.0040.00417.80
8.1.210.0050.00818.77
8.1.200.0060.00617.13
8.1.190.0090.00017.24
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0000.00721.95
8.1.150.0040.00418.75
8.1.140.0040.00417.39
8.1.130.0030.00317.84
8.1.120.0000.00817.46
8.1.110.0000.00717.45
8.1.100.0000.00817.45
8.1.90.0040.00417.44
8.1.80.0000.00717.29
8.1.70.0080.00017.29
8.1.60.0000.00817.61
8.1.50.0040.00417.35
8.1.40.0000.00817.43
8.1.30.0040.00417.63
8.1.20.0000.00717.64
8.1.10.0040.00417.56
8.1.00.0000.00717.45
8.0.300.0080.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00818.42
8.0.270.0040.00317.25
8.0.260.0000.00617.18
8.0.250.0070.00017.05
8.0.240.0050.00316.96
8.0.230.0000.00717.01
8.0.220.0040.00416.91
8.0.210.0030.00316.79
8.0.200.0000.00717.03
8.0.190.0060.00316.97
8.0.180.0000.00716.82
8.0.170.0030.00516.80
8.0.160.0040.00416.77
8.0.150.0050.00316.95
8.0.140.0040.00416.87
8.0.130.0060.00013.33
8.0.120.0040.00416.87
8.0.110.0040.00416.82
8.0.100.0040.00416.80
8.0.90.0000.00716.91
8.0.80.0080.00916.88
8.0.70.0070.00016.80
8.0.60.0070.00016.92
8.0.50.0040.00416.76
8.0.30.0150.00617.04
8.0.20.0160.01017.40
8.0.10.0040.00417.09
8.0.00.0110.00616.89
7.4.330.0000.00515.00
7.4.320.0000.00616.32
7.4.300.0060.00016.55
7.4.290.0070.00016.45
7.4.280.0040.00416.45
7.4.270.0030.00316.47
7.4.260.0050.00516.56
7.4.250.0000.00816.52
7.4.240.0040.00416.52
7.4.230.0030.00316.55
7.4.220.0060.01316.51
7.4.210.0090.00916.48
7.4.200.0000.00716.44
7.4.160.0120.00316.56
7.4.150.0080.01117.40
7.4.140.0060.01217.86
7.4.130.0050.01116.58
7.4.120.0080.00816.47
7.4.110.0130.00316.37
7.4.100.0070.01016.65
7.4.90.0130.00316.52
7.4.80.0100.00719.39
7.4.70.0030.01316.50
7.4.60.0030.01416.43
7.4.50.0030.00516.29
7.4.40.0100.00716.29
7.4.30.0060.01016.57
7.4.10.0030.01716.46
7.4.00.0080.00815.65
7.3.330.0030.00313.25
7.3.320.0000.00513.17
7.3.310.0020.00516.34
7.3.300.0040.00416.30
7.3.290.0130.00716.29
7.3.280.0050.01016.33
7.3.270.0180.00017.40
7.3.260.0070.01016.20
7.3.250.0100.00916.31
7.3.240.0100.00716.32
7.3.230.0100.00716.42
7.3.210.0090.00616.32
7.3.200.0130.00316.69
7.3.190.0000.01616.38
7.3.180.0070.01016.30
7.3.170.0130.01016.39
7.3.160.0060.01016.31
7.3.130.0040.01516.27
7.3.120.0120.00616.21
7.3.110.0030.01216.17
7.3.100.0030.01516.28
7.3.90.0070.01016.29
7.3.80.0120.00316.32
7.3.70.0100.00316.28
7.3.60.0070.00316.16
7.3.50.0030.01416.21
7.3.40.0030.01316.08
7.3.30.0120.00316.35
7.3.20.0120.00618.16
7.3.10.0070.01118.18
7.3.00.0040.01118.24
7.2.330.0090.01116.70
7.2.320.0100.01316.70
7.2.310.0180.00016.48
7.2.300.0090.00916.62
7.2.290.0050.01116.48
7.2.260.0090.00916.60
7.2.250.0140.00716.55
7.2.240.0130.00316.50
7.2.230.0070.01116.64
7.2.220.0030.01616.30
7.2.210.0060.01016.43
7.2.200.0040.01116.52
7.2.190.0080.00416.46
7.2.180.0130.00716.50
7.2.170.0030.00916.50
7.2.160.0090.00616.30
7.2.150.0000.01418.39
7.2.140.0030.01018.32
7.2.130.0070.00718.30
7.2.120.0030.01318.31
7.2.110.0100.00718.22
7.2.100.0070.00718.34
7.2.90.0060.00618.39
7.2.80.0030.00918.36
7.2.70.0060.00918.39
7.2.60.0060.00618.47
7.2.50.0040.01218.38
7.2.40.0070.01018.39
7.2.30.0000.01318.25
7.2.20.0110.00418.34
7.2.10.0060.00918.32
7.2.00.0080.01018.89
7.1.330.0130.00317.12
7.1.320.0070.00717.16
7.1.310.0090.00617.35
7.1.300.0040.01517.25
7.1.290.0070.01117.21
7.1.280.0090.00617.32
7.1.270.0100.00317.30
7.1.260.0000.01517.31
7.1.250.0030.01317.15
7.1.240.0030.00917.18
7.1.230.0070.00417.26
7.1.220.0110.00717.15
7.1.210.0030.00717.07
7.1.200.0090.00917.24
7.1.190.0040.00817.20
7.1.180.0030.01417.13
7.1.170.0070.00717.20
7.1.160.0070.00317.36
7.1.150.0060.00917.31
7.1.140.0040.01117.16
7.1.130.0030.01217.10
7.1.120.0050.00517.06
7.1.110.0040.01117.06
7.1.100.0050.01117.72
7.1.90.0030.01017.32
7.1.80.0120.00316.83
7.1.70.0010.00817.11
7.1.60.0110.00718.37
7.1.50.0060.01117.10
7.1.40.0060.00617.27
7.1.30.0030.01017.21
7.1.20.0000.01217.37
7.1.10.0040.01217.42
7.1.00.0020.04519.73
7.0.330.0120.00316.88
7.0.320.0070.00416.84
7.0.310.0040.01516.95
7.0.300.0060.00316.94
7.0.290.0040.00717.04
7.0.280.0060.00616.93
7.0.270.0030.01017.05
7.0.260.0070.00716.96
7.0.250.0040.01117.05
7.0.240.0100.00316.80
7.0.230.0120.00316.80
7.0.220.0040.00716.82
7.0.210.0070.00717.04
7.0.200.0090.00116.84
7.0.190.0060.00616.94
7.0.180.0070.00717.01
7.0.170.0030.00616.82
7.0.160.0080.00816.98
7.0.150.0000.01616.93
7.0.140.0000.04419.58
7.0.130.0090.00316.89
7.0.120.0030.01517.05
7.0.110.0090.00016.87
7.0.100.0040.01116.98
7.0.90.0070.01117.05
7.0.80.0000.01517.01
7.0.70.0090.00417.02
7.0.60.0030.05018.46
7.0.50.0080.02117.36
7.0.40.0060.03617.68
7.0.30.0280.02517.62
7.0.20.0150.02717.54
7.0.10.0090.04917.51
7.0.00.0050.04917.58
5.6.400.0040.01416.04
5.6.390.0000.01416.29
5.6.380.0120.00415.96
5.6.370.0090.00916.23
5.6.360.0040.01116.04
5.6.350.0040.01116.13
5.6.340.0050.00515.95
5.6.330.0060.00615.91
5.6.320.0100.00315.90
5.6.310.0060.00316.01
5.6.300.0040.00415.83
5.6.290.0030.00915.76
5.6.280.0060.03818.39
5.6.270.0040.01116.05
5.6.260.0100.00016.09
5.6.250.0070.00715.94
5.6.240.0070.00715.97
5.6.230.0040.01216.21
5.6.220.0090.00916.06
5.6.210.0140.03818.30
5.6.200.0060.02917.15
5.6.190.0060.03818.42
5.6.180.0240.03118.14
5.6.170.0190.04418.21
5.6.160.0110.04118.24
5.6.150.0020.03217.22
5.6.140.0060.03317.18
5.6.130.0060.03617.15
5.6.120.0080.03318.51
5.6.110.0060.02118.61
5.6.100.0070.04218.40
5.6.90.0050.02818.41
5.6.80.0090.03418.19
5.6.70.0120.00315.79
5.6.60.0060.00915.85
5.6.50.0080.00315.87
5.6.40.0090.00615.87
5.6.30.0070.01015.82
5.6.20.0100.00715.90
5.6.10.0000.01216.11
5.6.00.0000.01415.88
5.5.380.0040.01115.87
5.5.370.0000.01115.84
5.5.360.0030.01015.93
5.5.350.0150.04218.21
5.5.340.0070.04216.83
5.5.330.0090.04618.15
5.5.320.0220.03718.18
5.5.310.0170.03217.86
5.5.300.0050.03017.05
5.5.290.0050.02517.04
5.5.280.0130.04118.36
5.5.270.0050.04418.49
5.5.260.0060.04618.39
5.5.250.0140.03918.18
5.5.240.0100.04018.06
5.5.230.0090.00615.96
5.5.220.0000.01415.89
5.5.210.0060.00615.76
5.5.200.0070.00715.71
5.5.190.0060.00615.94
5.5.180.0080.00415.87
5.5.170.0060.00615.69
5.5.160.0030.01315.91
5.5.150.0140.00015.83
5.5.140.0080.00615.93
5.5.130.0100.00315.55
5.5.120.0120.00315.79
5.5.110.0090.00915.33
5.5.100.0030.00915.61
5.5.90.0030.00915.55
5.5.80.0070.00715.76
5.5.70.0030.01315.59
5.5.60.0090.00315.74
5.5.50.0030.00915.64
5.5.40.0100.00715.87
5.5.30.0120.00315.35
5.5.20.0060.00615.80
5.5.10.0060.00615.44
5.5.00.0080.00815.74
5.4.450.0160.02916.05
5.4.440.0190.01816.09
5.4.430.0120.02916.08
5.4.420.0200.02716.02
5.4.410.0150.02915.97
5.4.400.0200.02515.83
5.4.390.0130.02716.00
5.4.380.0260.02915.60
5.4.370.0190.03715.78
5.4.360.0180.02915.72
5.4.350.0230.02615.62
5.4.340.0130.03215.58
5.4.330.0060.00312.69
5.4.320.0060.02112.60
5.4.310.0050.02212.60
5.4.300.0040.02112.60
5.4.290.0050.02112.60
5.4.280.0080.02012.54
5.4.270.0070.01812.54
5.4.260.0040.02812.54
5.4.250.0060.02212.54
5.4.240.0060.02112.54
5.4.230.0010.02612.54
5.4.220.0040.02112.54
5.4.210.0040.02212.54
5.4.200.0070.02112.54
5.4.190.0080.02012.61
5.4.180.0070.02312.54
5.4.170.0060.01912.54
5.4.160.0090.01812.54
5.4.150.0020.02212.56
5.4.140.0040.02212.38
5.4.130.0040.02212.38
5.4.120.0050.02112.35
5.4.110.0070.01812.38
5.4.100.0060.02112.37
5.4.90.0060.02312.39
5.4.80.0020.02512.35
5.4.70.0090.01912.38
5.4.60.0020.02412.35
5.4.50.0060.01912.35
5.4.40.0050.01912.37
5.4.30.0040.02112.36
5.4.20.0050.02312.34
5.4.10.0050.02012.34
5.4.00.0050.02112.08
5.3.290.0060.03912.80
5.3.280.0020.04112.71
5.3.270.0050.03912.73
5.3.260.0060.03812.72
5.3.250.0030.04212.72
5.3.240.0080.03512.71
5.3.230.0050.03912.71
5.3.220.0070.03412.68
5.3.210.0050.03912.68
5.3.200.0060.04112.68
5.3.190.0050.04112.68
5.3.180.0040.03812.68
5.3.170.0070.03512.67
5.3.160.0080.03312.67
5.3.150.0040.03812.67
5.3.140.0090.03212.66
5.3.130.0080.03512.66
5.3.120.0070.04812.66
5.3.110.0060.03712.66
5.3.100.0050.04212.12
5.3.90.0050.04012.10
5.3.80.0020.04012.09
5.3.70.0060.03912.09
5.3.60.0060.03612.07
5.3.50.0060.03512.02
5.3.40.0040.03912.02
5.3.30.0060.03711.98
5.3.20.0070.03411.76
5.3.10.0040.03511.73
5.3.00.0070.03711.71
5.2.170.0040.0329.22
5.2.160.0060.0299.22
5.2.150.0080.0299.22
5.2.140.0090.0259.22
5.2.130.0040.0299.18
5.2.120.0060.0269.18
5.2.110.0060.0279.18
5.2.100.0030.0309.19
5.2.90.0040.0309.18
5.2.80.0050.0299.17
5.2.70.0080.0269.17
5.2.60.0050.0359.12
5.2.50.0080.0369.09
5.2.40.0060.0289.07
5.2.30.0070.0349.05
5.2.20.0030.0309.04
5.2.10.0040.0288.94
5.2.00.0040.0298.81
5.1.60.0040.0248.09
5.1.50.0040.0258.09
5.1.40.0060.0218.07
5.1.30.0060.0258.41
5.1.20.0040.0268.45
5.1.10.0090.0218.16
5.1.00.0060.0248.16
5.0.50.0020.0216.64
5.0.40.0040.0196.50
5.0.30.0020.0326.32
5.0.20.0040.0186.28
5.0.10.0040.0196.26
5.0.00.0030.0306.25
4.4.90.0040.0134.78
4.4.80.0030.0214.76
4.4.70.0030.0194.75
4.4.60.0050.0124.75
4.4.50.0020.0154.77
4.4.40.0020.0284.71
4.4.30.0030.0194.76
4.4.20.0030.0184.84
4.4.10.0010.0174.85
4.4.00.0010.0264.76
4.3.110.0010.0184.66
4.3.100.0030.0154.66
4.3.90.0040.0134.63
4.3.80.0070.0204.58
4.3.70.0050.0144.63
4.3.60.0040.0184.63
4.3.50.0020.0194.63
4.3.40.0020.0274.54
4.3.30.0020.0163.30
4.3.20.0030.0143.28
4.3.10.0040.0263.23
4.3.00.0030.01716.72

preferences:
37.83 ms | 400 KiB | 5 Q