3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(0, 7); class helper{ public $a1; public $a2; public $a3; public $a4; public $a5; public $a6; public $a7; public $a8; public $a9; public $a10; public $a11; public $a12; public $a13; public $a14; public function hello() { echo "maple"; } } set_error_handler(function($err, $msg) { global $array; global $helper; $array[] = 1; // force resize $helper = new helper(); }); function crash() { global $array; global $helper; $array[0] = $var; // undefined notice $helper->hello(); $helper->$a1 = 1337; } crash();

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.4.30.0250.00418.11
8.4.20.0320.00818.00
8.4.10.0290.00817.59
8.3.160.0270.00317.06
8.3.150.0210.00717.06
8.3.140.0270.00616.94
8.3.130.0300.00516.65
8.3.120.0270.00516.63
8.3.110.0310.00516.60
8.3.100.0350.00616.58
8.3.90.0360.00616.51
8.3.80.0250.00516.64
8.3.70.0240.00416.63
8.3.60.0280.00916.59
8.3.50.0310.00816.55
8.3.40.0260.00617.30
8.3.30.0220.00717.86
8.3.20.0300.00617.47
8.3.10.0270.00917.46
8.3.00.0160.00718.43
8.2.270.0260.00716.64
8.2.260.0280.00716.54
8.2.250.0260.00916.52
8.2.240.0280.00716.37
8.2.230.0280.00716.39
8.2.220.0280.00616.42
8.2.210.0270.00716.42
8.2.200.0260.00616.56
8.2.190.0270.00916.61
8.2.180.0240.01116.62
8.2.170.0310.00918.01
8.2.160.0320.00617.62
8.2.150.0310.00617.56
8.2.140.0280.00917.49
8.2.130.0260.01017.47
8.2.120.0270.00917.53
8.2.110.0270.00717.54
8.2.100.0300.00417.54
8.2.90.0260.00817.62
8.2.80.0270.00717.44
8.2.70.0290.00717.54
8.2.60.0310.00617.52
8.2.50.0330.00517.40
8.2.40.0250.00717.61
8.2.30.0190.00917.55
8.2.20.0230.00617.50
8.2.10.0240.00617.46
8.2.00.0230.00717.54
8.1.310.0260.00716.55
8.1.300.0240.00816.13
8.1.290.0240.00716.05
8.1.280.0200.01116.10
8.1.270.0240.00617.36
8.1.260.0230.00817.33
8.1.250.0250.00517.26
8.1.240.0250.00417.18
8.1.230.0190.00717.19
8.1.220.0240.00717.08
8.1.210.0260.00617.35
8.1.200.0260.00517.20
8.1.190.0240.00717.17
8.1.180.0250.00617.15
8.1.170.0240.00517.15
8.1.160.0230.00616.98
8.1.150.0230.00617.15
8.1.140.0290.00417.10
8.1.130.0250.00517.08
8.1.120.0250.00417.19
8.1.110.0230.00617.17
8.1.100.0210.00817.15
8.1.90.0190.01017.18
8.1.80.0210.00817.04
8.1.70.0250.00517.08
8.1.60.0260.00717.33
8.1.50.0260.00717.20
8.1.40.0220.00817.19
8.1.30.0270.00317.44
8.1.20.0240.00617.30
8.1.10.0240.00517.24
8.1.00.0230.00817.09
8.0.300.0260.00616.28
8.0.290.0230.00616.33
8.0.280.0240.00616.41
8.0.270.0210.00816.37
8.0.260.0240.00516.39
8.0.250.0200.00816.39
8.0.240.0230.00516.51
8.0.230.0220.00816.45
8.0.220.0250.00716.35
8.0.210.0240.00616.29
8.0.200.0250.00516.92
8.0.190.0220.00816.51
8.0.180.0250.00516.49
8.0.170.0230.00616.47
8.0.160.0230.00516.42
8.0.150.0230.00916.50
8.0.140.0260.00516.42
8.0.130.0250.00516.51
8.0.120.0230.00716.36
8.0.110.0220.00616.45
8.0.100.0250.00416.37
8.0.90.0270.00516.52
8.0.80.0270.00616.36
8.0.70.0250.00516.43
8.0.60.0200.01016.43
8.0.50.0220.00716.38
8.0.30.0210.00716.43
8.0.20.0230.00516.50
8.0.10.0220.00616.52
8.0.00.0250.00516.72
7.4.330.0250.00716.31
7.4.320.0190.00716.12
7.4.300.0190.00716.18
7.4.290.0200.00516.21
7.4.280.0160.00616.27
7.4.270.0160.00616.33
7.4.260.0160.00816.26
7.4.250.0230.00516.10
7.4.240.0240.00416.26
7.4.230.0230.00516.22
7.4.220.0230.00516.10
7.4.210.0220.00616.24
7.4.200.0210.00616.18
7.4.190.0200.00716.27
7.4.180.0220.00516.27
7.4.160.0190.00816.28
7.4.150.0210.00516.27
7.4.140.0220.00716.18
7.4.130.0200.00316.11
7.4.120.0200.00616.17
7.4.110.0200.00716.14
7.4.100.0200.00616.25
7.4.90.0150.01216.24
7.4.80.0200.00716.36
7.4.70.0220.00616.05
7.4.60.0210.00615.95
7.4.50.0230.00415.93
7.4.40.0240.00515.78
7.4.30.0200.00615.95
7.4.20.0230.00316.03
7.4.10.0170.00915.99
7.4.00.0250.00316.46
7.3.330.0220.00616.03
7.3.320.0200.00615.95
7.3.310.0210.00515.83
7.3.300.0250.00215.92
7.3.290.0200.00616.07
7.3.280.0240.00216.10
7.3.270.0210.00516.06
7.3.260.0200.00616.02
7.3.250.0260.00315.94
7.3.240.0240.00315.95
7.3.230.0210.00516.03
7.3.220.0260.00315.85
7.3.210.0220.00715.93
7.3.200.0220.00615.93
7.3.190.0220.00616.06
7.3.180.0210.00515.87
7.3.170.0260.00215.92
7.3.160.0240.00415.90
7.3.150.0240.00415.88
7.3.140.0250.00315.95
7.3.130.0200.00815.81
7.3.120.0200.00716.42
7.3.110.0190.00715.82
7.3.100.0230.00316.02
7.3.90.0240.00416.06
7.3.80.0240.00415.82
7.3.70.0220.00515.91
7.3.60.0210.00516.07
7.3.50.0260.00315.95
7.3.40.0210.00515.98
7.3.30.0220.00515.98
7.3.20.0280.00117.77
7.3.10.0210.00717.88
7.3.00.0290.00117.77
7.2.340.0180.00915.98
7.2.330.0190.00815.97
7.2.320.0220.00515.91
7.2.310.0220.00415.92
7.2.300.0200.00715.96
7.2.290.0210.00615.93
7.2.280.0230.00415.92
7.2.270.0220.00615.87
7.2.260.0210.00615.77
7.2.250.0180.00515.99
7.2.240.0230.00315.97
7.2.230.0220.00415.93
7.2.220.0200.00715.88
7.2.210.0180.00615.81
7.2.200.0180.00815.97
7.2.190.0220.00515.97
7.2.180.0180.00815.89
7.2.170.0210.00616.14
7.2.160.0220.00616.09
7.2.150.0250.00517.73
7.2.140.0260.00217.82
7.2.130.0230.00218.04
7.2.120.0190.00518.03
7.2.110.0180.00818.04
7.2.100.0220.00917.91
7.2.90.0230.00417.97
7.2.80.0170.00817.94
7.2.70.0230.00617.98
7.2.60.0210.00617.84
7.2.50.0230.00518.04
7.2.40.0250.00217.96
7.2.30.0210.00717.98
7.2.20.0270.00417.99
7.2.10.0240.00517.99
7.2.00.0180.00918.05
7.1.330.0220.00217.07
7.1.320.0180.00316.93
7.1.310.0190.00516.96
7.1.300.0190.00516.98
7.1.290.0190.00516.94
7.1.280.0180.00617.03
7.1.270.0210.00516.86
7.1.260.0200.00516.93
7.1.250.0210.00316.82
7.1.240.0180.00716.83
7.1.230.0200.00516.96
7.1.220.0190.00616.99
7.1.210.0140.00616.90
7.1.200.0170.00416.99
7.1.190.0160.00417.02
7.1.180.0180.00416.88
7.1.170.0200.00416.95
7.1.160.0180.00717.01
7.1.150.0200.00516.83
7.1.140.0220.00516.80
7.1.130.0210.00516.80
7.1.120.0250.00616.87
7.1.110.0200.00516.92
7.1.100.0220.00216.79
7.1.90.0200.00416.70
7.1.80.0230.00117.05
7.1.70.0200.00516.67
7.1.60.0200.00516.94
7.1.50.0180.00516.83
7.1.40.0190.00516.92
7.1.30.0200.00416.97
7.1.20.0180.00716.76
7.1.10.0220.00316.87
7.1.00.0130.00916.94
7.0.330.0160.00316.54
7.0.320.0190.00316.43
7.0.310.0200.00316.52
7.0.300.0200.00416.55
7.0.290.0200.00216.57
7.0.280.0170.00516.40
7.0.270.0170.00516.65
7.0.260.0180.00616.53
7.0.250.0210.00416.66
7.0.240.0200.00416.54
7.0.230.0190.00516.58
7.0.220.0190.00516.55
7.0.210.0190.00516.47
7.0.200.0220.00516.61
7.0.190.0200.00316.74
7.0.180.0170.00616.55
7.0.170.0220.00316.69
7.0.160.0180.00716.60
7.0.150.0200.00516.64
7.0.140.0160.00516.57
7.0.130.0160.00716.74
7.0.120.0180.00716.74
7.0.110.0210.00316.54
7.0.100.0200.00316.50
7.0.90.0210.00216.50
7.0.80.0160.00716.44
7.0.70.0190.00416.61
7.0.60.0180.00316.65
7.0.50.0160.00616.44
7.0.40.0180.00716.58
7.0.30.0220.00416.43
7.0.20.0210.00316.47
7.0.10.0170.00716.63
7.0.00.0160.00816.49
5.6.400.0210.00415.84
5.6.390.0210.00515.85
5.6.380.0200.00415.72
5.6.370.0180.00615.80
5.6.360.0190.00815.78
5.6.350.0180.00715.75
5.6.340.0160.00715.77
5.6.330.0190.00515.81
5.6.320.0150.00915.81
5.6.310.0200.00615.69
5.6.300.0230.00415.61
5.6.290.0210.00615.77
5.6.280.0180.00815.88
5.6.270.0240.00115.69
5.6.260.0200.00515.83
5.6.250.0170.00815.82
5.6.240.0190.00615.64
5.6.230.0230.00415.83
5.6.220.0180.00615.89
5.6.210.0170.00715.76
5.6.200.0210.00515.94
5.6.190.0200.00515.93
5.6.180.0180.00715.69
5.6.170.0200.00615.94
5.6.160.0240.00415.92
5.6.150.0210.00615.92
5.6.140.0190.00715.95
5.6.130.0250.00415.87
5.6.120.0220.00515.85
5.6.110.0210.00415.83
5.6.100.0200.00615.84
5.6.90.0200.00515.85
5.6.80.0200.00615.80
5.6.70.0170.00715.97
5.6.60.0180.00715.74
5.6.50.0180.00715.76
5.6.40.0230.00615.64
5.6.30.0200.00515.72
5.6.20.0160.00915.71
5.6.10.0180.00715.68
5.6.00.0230.00315.78
5.5.380.0200.00616.02
5.5.370.0160.00815.90
5.5.360.0210.00415.67
5.5.350.0150.01015.71
5.5.340.0190.00515.69
5.5.330.0200.00615.80
5.5.320.0180.00415.68
5.5.310.0210.00215.83
5.5.300.0200.00515.73
5.5.290.0200.00515.68
5.5.280.0210.00415.70
5.5.270.0200.00415.80
5.5.260.0190.00615.81
5.5.250.0160.00815.79
5.5.240.0200.00315.84
5.5.230.0150.00615.75
5.5.220.0230.00315.65
5.5.210.0190.00515.76
5.5.200.0190.00415.58
5.5.190.0200.00415.66
5.5.180.0160.00715.64
5.5.170.0190.00415.71
5.5.160.0180.00715.60
5.5.150.0180.00515.64
5.5.140.0190.00315.57
5.5.130.0210.00415.65
5.5.120.0210.00515.64
5.5.110.0200.00415.64
5.5.100.0170.00615.83
5.5.90.0190.00615.82
5.5.80.0210.00415.66
5.5.70.0190.00415.85
5.5.60.0170.00615.86
5.5.50.0170.00615.70
5.5.40.0170.00615.81
5.5.30.0180.00515.82
5.5.20.0200.00415.71
5.5.10.0190.00415.67
5.5.00.0190.00615.54
5.4.450.0150.00315.32
5.4.440.0160.00315.32
5.4.430.0120.00715.32
5.4.420.0130.00515.32
5.4.410.0150.00315.32
5.4.400.0150.00415.32
5.4.390.0150.00515.32
5.4.380.0130.00515.32
5.4.370.0150.00415.32
5.4.360.0180.00215.32
5.4.350.0160.00315.32
5.4.340.0140.00515.32
5.4.330.0170.00215.32
5.4.320.0130.00515.32
5.4.310.0120.00715.32
5.4.300.0110.00615.32
5.4.290.0150.00415.32
5.4.280.0150.00415.32
5.4.270.0140.00515.32
5.4.260.0130.00515.32
5.4.250.0150.00315.32
5.4.240.0160.00315.32
5.4.230.0160.00315.32
5.4.220.0150.00415.32
5.4.210.0140.00615.32
5.4.200.0140.00615.32
5.4.190.0130.00715.32
5.4.180.0150.00415.32
5.4.170.0110.00715.32
5.4.160.0180.00215.32
5.4.150.0130.00715.32
5.4.140.0150.00315.32
5.4.130.0150.00215.32
5.4.120.0160.00315.32
5.4.110.0180.00115.32
5.4.100.0170.00515.32
5.4.90.0150.00315.32
5.4.80.0160.00315.32
5.4.70.0130.00615.32
5.4.60.0110.00815.32
5.4.50.0180.00315.32
5.4.40.0160.00315.32
5.4.30.0150.00415.32
5.4.20.0130.00615.32
5.4.10.0110.00715.32
5.4.00.0120.00415.32
5.3.290.0130.00315.32
5.3.280.0120.00515.32
5.3.270.0120.00615.32
5.3.260.0140.00415.32
5.3.250.0130.00515.32
5.3.240.0130.00315.32
5.3.230.0120.00415.32
5.3.220.0150.00415.32
5.3.210.0150.00315.32
5.3.200.0140.00515.32
5.3.190.0140.00415.32
5.3.180.0140.00315.32
5.3.170.0120.00615.32
5.3.160.0130.00615.32
5.3.150.0130.00615.32
5.3.140.0160.00415.32
5.3.130.0120.00415.32
5.3.120.0130.00415.32
5.3.110.0140.00315.32
5.3.100.0160.00215.32
5.3.90.0120.00715.32
5.3.80.0180.00115.32
5.3.70.0170.00215.32
5.3.60.0150.00315.32
5.3.50.0140.00415.32
5.3.40.0130.00615.32
5.3.30.0130.00615.32
5.3.20.0140.00515.32
5.3.10.0150.00415.32
5.3.00.0140.00515.32
5.2.170.0100.00615.32
5.2.160.0120.00415.32
5.2.150.0130.00315.32
5.2.140.0100.00515.32
5.2.130.0120.00315.32
5.2.120.0100.00615.32
5.2.110.0110.00415.32
5.2.100.0140.00115.32
5.2.90.0110.00515.32
5.2.80.0110.00415.32
5.2.70.0110.00415.32
5.2.60.0100.00515.32
5.2.50.0120.00415.32
5.2.40.0120.00415.32
5.2.30.0110.00415.32
5.2.20.0160.00615.32
5.2.10.0100.00615.32
5.2.00.0080.00615.32
5.1.60.0090.00315.32
5.1.50.0090.00315.32
5.1.40.0110.00215.32
5.1.30.0090.00515.32
5.1.20.0120.00215.32
5.1.10.0110.00415.32
5.1.00.0130.00215.32
5.0.50.0080.00515.32
5.0.40.0100.00115.32
5.0.30.0080.00415.32
5.0.20.0100.00215.32
5.0.10.0080.00315.32
5.0.00.0050.00615.32
4.4.90.0030.00315.32
4.4.80.0030.00415.32
4.4.70.0060.00115.32
4.4.60.0060.00115.32
4.4.50.0060.00015.32
4.4.40.0040.00215.32
4.4.30.0040.00215.32
4.4.20.0050.00115.32
4.4.10.0040.00215.32
4.4.00.0060.00015.32
4.3.110.0060.00015.32
4.3.100.0050.00215.32
4.3.90.0070.00015.32
4.3.80.0060.00115.32
4.3.70.0060.00115.32
4.3.60.0040.00215.32
4.3.50.0040.00315.32
4.3.40.0050.00215.32
4.3.30.0030.00315.32
4.3.20.0040.00215.32
4.3.10.0030.00215.32
4.3.00.0030.00215.32

preferences:
31.91 ms | 403 KiB | 5 Q