3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variable = 'not an object'; try { $variable->method(); // Throws an Error object in PHP 7 or higger. } catch (Error $e) { // Handle error echo $e->getMessage(); // Call to a member function method() on string }

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.130.0100.01016.46
8.3.120.0060.00320.67
8.3.110.0040.01116.63
8.3.100.0030.00724.06
8.3.90.0090.00926.77
8.3.80.0060.00316.50
8.3.70.0100.01016.61
8.3.60.0140.00718.28
8.3.50.0120.00517.45
8.3.40.0140.00018.82
8.3.30.0080.00818.58
8.3.20.0040.00420.34
8.3.10.0040.00421.78
8.3.00.0110.00019.30
8.2.250.0030.00716.83
8.2.240.0150.00018.91
8.2.230.0060.00320.94
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0040.00418.54
8.2.190.0110.01116.58
8.2.180.0060.00916.50
8.2.170.0040.01122.96
8.2.160.0070.01020.38
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00421.12
8.2.110.0030.00621.06
8.2.100.0190.00518.14
8.2.90.0130.00518.78
8.2.80.0160.00318.21
8.2.70.0160.00348.65
8.2.60.0130.00438.34
8.2.50.0130.00648.79
8.2.40.0120.00648.85
8.2.30.0120.00548.77
8.2.20.0140.00448.76
8.2.10.0120.00548.81
8.2.00.0130.00348.86
8.1.300.0030.00716.20
8.1.290.0060.00330.84
8.1.280.0140.00325.92
8.1.270.0040.01225.33
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0040.00419.47
8.1.230.0130.00718.07
8.1.220.0130.00318.09
8.1.210.0140.00418.61
8.1.200.0160.00248.61
8.1.190.0170.00348.58
8.1.180.0110.00539.04
8.1.170.0150.00448.92
8.1.160.0080.00948.95
8.1.150.0140.00348.97
8.1.140.0100.00648.70
8.1.130.0120.00548.63
8.1.120.0110.00548.62
8.1.110.0110.00548.63
8.1.100.0090.00433.00
8.1.90.0090.00631.22
8.1.80.0110.00427.76
8.1.70.0090.00525.16
8.1.60.0120.00527.84
8.1.50.0130.00427.87
8.1.40.0130.00426.39
8.1.30.0140.00525.35
8.1.20.0150.00425.35
8.1.10.0130.00625.30
8.1.00.0130.00525.22
8.0.300.0130.00219.23
8.0.290.0110.00748.43
8.0.280.0140.00348.86
8.0.270.0140.00348.60
8.0.260.0130.00448.48
8.0.250.0160.00248.49
8.0.240.0100.00848.54
8.0.230.0120.00634.96
8.0.220.0090.00630.92
8.0.210.0100.00629.48
8.0.200.0070.00727.42
8.0.190.0100.00527.42
8.0.180.0110.00427.41
8.0.170.0080.00725.89
8.0.160.0100.00524.73
8.0.150.0130.00424.70
8.0.140.0120.00424.72
8.0.130.0100.00524.05
8.0.120.0100.00624.25
8.0.110.0100.00424.26
8.0.100.0110.00424.26
8.0.90.0110.00524.27
8.0.80.0090.00723.16
8.0.70.0120.00523.85
8.0.60.0100.00623.82
8.0.50.0110.00623.84
8.0.30.0110.00722.12
8.0.20.0130.00621.48
8.0.10.0110.00722.01
8.0.00.0090.00721.64
7.4.330.0090.00537.54
7.4.320.0140.00248.39
7.4.300.0090.00525.61
7.4.290.0130.00427.11
7.4.280.0110.00425.00
7.4.270.0100.00524.49
7.4.260.0110.00624.02
7.4.250.0120.00524.00
7.4.240.0110.00623.98
7.4.230.0120.00523.99
7.4.220.0100.00523.97
7.4.210.0100.00523.58
7.4.200.0090.00623.58
7.4.190.0090.00723.61
7.4.180.0110.00523.64
7.4.160.0120.00522.08
7.4.150.0110.00621.41
7.4.140.0120.00621.07
7.4.130.0120.00521.37
7.4.120.0110.00620.60
7.4.110.0100.00821.04
7.4.100.0110.00620.87
7.4.90.0110.00620.87
7.4.80.0110.00620.82
7.4.70.0120.00620.75
7.4.60.0110.00620.61
7.4.50.0100.00820.52
7.4.40.0110.00720.64
7.4.30.0110.00620.74
7.4.20.0110.00620.71
7.4.10.0100.00620.71
7.4.00.0090.00720.37
7.3.330.0110.00422.75
7.3.320.0100.00623.61
7.3.310.0120.00423.75
7.3.300.0120.00523.77
7.3.290.0120.00522.63
7.3.280.0100.00622.63
7.3.270.0120.00521.25
7.3.260.0110.00620.84
7.3.250.0110.00720.89
7.3.240.0120.00620.74
7.3.230.0120.00720.88
7.3.220.0110.00720.83
7.3.210.0110.00820.67
7.3.200.0120.00720.55
7.3.190.0120.00620.55
7.3.180.0120.00620.43
7.3.170.0120.00720.52
7.3.160.0120.00720.54
7.3.150.0130.00620.55
7.3.140.0120.00620.54
7.3.130.0130.00620.52
7.3.120.0130.00520.34
7.3.110.0110.00720.31
7.3.100.0100.00819.95
7.3.90.0110.00620.13
7.3.80.0110.00619.82
7.3.70.0100.00719.89
7.3.60.0100.00819.93
7.3.50.0110.00719.65
7.3.40.0100.00719.60
7.3.30.0110.00619.61
7.3.20.0140.00619.92
7.3.10.0110.00719.76
7.3.00.0140.00619.57
7.2.340.0130.00721.07
7.2.330.0160.00520.79
7.2.320.0130.00820.63
7.2.310.0140.00720.62
7.2.300.0130.00720.63
7.2.290.0150.00520.63
7.2.280.0130.00820.63
7.2.270.0130.00720.61
7.2.260.0140.00620.60
7.2.250.0140.00620.42
7.2.240.0140.00720.46
7.2.230.0130.00720.06
7.2.220.0130.00820.08
7.2.210.0140.00719.90
7.2.200.0150.00720.08
7.2.190.0130.00820.04
7.2.180.0130.00719.74
7.2.170.0120.00819.75
7.2.160.0140.00619.78
7.2.150.0150.00620.14
7.2.140.0140.00820.13
7.2.130.0150.00719.98
7.2.120.0140.00719.91
7.2.110.0160.00719.94
7.2.100.0180.00619.80
7.2.90.0150.00619.77
7.2.80.0170.00819.76
7.2.70.0200.00619.76
7.2.60.0180.00819.72
7.2.50.0210.00619.78
7.2.40.0190.00719.82
7.2.30.0170.00819.81
7.2.20.0180.00619.79
7.2.10.0160.00719.75
7.2.00.0190.00719.74
7.1.330.0170.00619.95
7.1.320.0150.00719.56
7.1.310.0150.00619.38
7.1.300.0150.00619.40
7.1.290.0150.00619.41
7.1.280.0150.00619.14
7.1.270.0140.00719.11
7.1.260.0170.00619.11
7.1.250.0150.00518.89
7.1.240.0160.00718.97
7.1.230.0150.00718.97
7.1.220.0170.00718.90
7.1.210.0200.00618.90
7.1.200.0170.00618.83
7.1.190.0160.00618.88
7.1.180.0190.00618.85
7.1.170.0200.00718.88
7.1.160.0210.00718.89
7.1.150.0240.00618.85
7.1.140.0180.00718.86
7.1.130.0180.00718.81
7.1.120.0220.00718.82
7.1.110.0220.00818.84
7.1.100.0220.00618.74
7.1.90.0230.00618.79
7.1.80.0260.00618.86
7.1.70.0220.00718.73
7.1.60.0240.00719.72
7.1.50.0260.00719.71
7.1.40.0250.00719.72
7.1.30.0250.00719.71
7.1.20.0260.00719.72
7.1.10.0240.00618.76
7.1.00.0200.00718.77
7.0.330.0150.00718.80
7.0.320.0170.00619.98
7.0.310.0150.00719.99
7.0.300.0150.00620.02
7.0.290.0140.00719.98
7.0.280.0150.00620.00
7.0.270.0160.00619.97
7.0.260.0150.00519.97
7.0.250.0150.00620.08
7.0.240.0160.00520.10
7.0.230.0160.00620.05
7.0.220.0170.00720.02
7.0.210.0150.00720.03
7.0.200.0150.00620.01
7.0.190.0160.00620.05
7.0.180.0160.00519.99
7.0.170.0140.00720.07
7.0.160.0160.00719.97
7.0.150.0140.00720.02
7.0.140.0150.00820.01
7.0.130.0140.00619.99
7.0.120.0160.00620.02
7.0.110.0160.00620.01
7.0.100.0160.00620.00
7.0.90.0150.00719.97
7.0.80.0150.00619.94
7.0.70.0150.00620.00
7.0.60.0150.00720.01
7.0.50.0160.00519.96
7.0.40.0140.00719.99
7.0.30.0170.00520.03
7.0.20.0160.00619.97
7.0.10.0160.00520.00
7.0.00.0170.00619.83
5.6.400.0140.00718.92
5.6.390.0140.00719.13
5.6.380.0140.00718.86
5.6.370.0150.00720.09
5.6.360.0150.00620.09
5.6.350.0140.00720.08
5.6.340.0140.00720.08
5.6.330.0140.00720.07
5.6.320.0120.00820.09
5.6.310.0150.00620.09
5.6.300.0150.00620.03
5.6.290.0140.00720.09
5.6.280.0140.00820.11
5.6.270.0150.00720.13
5.6.260.0130.00820.08
5.6.250.0150.00720.04
5.6.240.0160.00620.05
5.6.230.0130.00820.11
5.6.220.0150.00820.14
5.6.210.0140.00720.15
5.6.200.0140.00720.16
5.6.190.0140.00720.17
5.6.180.0150.00620.14
5.6.170.0140.00820.19
5.6.160.0130.00820.15
5.6.150.0140.00720.14
5.6.140.0130.00720.13
5.6.130.0140.00719.81
5.6.120.0140.00720.11
5.6.110.0160.00620.08
5.6.100.0140.00720.09
5.6.90.0140.00719.76
5.6.80.0140.00720.05
5.6.70.0130.00720.10
5.6.60.0140.00720.09
5.6.50.0130.00720.04
5.6.40.0120.00820.05
5.6.30.0120.00820.07
5.6.20.0120.00720.04
5.6.10.0140.00620.04
5.6.00.0140.00619.77

preferences:
27.77 ms | 403 KiB | 5 Q