3v4l.org

run code in 300+ PHP versions simultaneously
<?php class asd { function __construct() { } function run() { asd1(); } } function asd1() { asd2(); } function asd2() { asd3(); } function asd3() { echo '2'; @error_log('asdasd'); echo '3'; } $asd = new asd(); echo '1'; ob_start(); @$asd->run(); $output = ob_get_clean(); //echo $output; echo '4';

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.0070.01816.50
8.3.50.0130.00821.11
8.3.40.0130.00618.63
8.3.30.0100.01018.68
8.3.20.0100.01020.32
8.3.10.0120.00623.81
8.3.00.0070.01023.69
8.2.180.0040.01816.75
8.2.170.0190.00022.96
8.2.160.0130.00620.38
8.2.150.0190.00024.18
8.2.140.0150.00324.66
8.2.130.0070.00021.10
8.2.120.0100.01026.35
8.2.110.0000.01122.11
8.2.100.0070.00717.72
8.2.90.0000.00817.75
8.2.80.0040.00418.04
8.2.70.0050.00317.80
8.2.60.0040.00417.79
8.2.50.0000.00818.10
8.2.40.0040.00420.59
8.2.30.0040.00420.59
8.2.20.0000.00717.67
8.2.10.0050.00417.94
8.2.00.0070.00017.98
8.1.280.0180.00325.92
8.1.270.0080.00023.82
8.1.260.0070.01128.09
8.1.250.0070.01128.09
8.1.240.0030.00622.44
8.1.230.0080.00619.10
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0090.00017.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.62
8.1.160.0000.00720.81
8.1.150.0050.00218.80
8.1.140.0050.00319.49
8.1.130.0030.00317.62
8.1.120.0000.00717.50
8.1.110.0040.00417.51
8.1.100.0040.00417.44
8.1.90.0040.00417.46
8.1.80.0040.00417.45
8.1.70.0040.00417.48
8.1.60.0030.00617.64
8.1.50.0030.00517.53
8.1.40.0040.00417.38
8.1.30.0080.00017.66
8.1.20.0030.00517.61
8.1.10.0040.00417.57
8.1.00.0000.00817.50
8.0.300.0040.00419.73
8.0.290.0060.00316.88
8.0.280.0040.00418.45
8.0.270.0000.00717.13
8.0.260.0070.00017.25
8.0.250.0070.00017.08
8.0.240.0030.00316.99
8.0.230.0030.00516.94
8.0.220.0030.00316.91
8.0.210.0040.00416.98
8.0.200.0000.00616.99
8.0.190.0000.00817.00
8.0.180.0050.00317.01
8.0.170.0030.00616.98
8.0.160.0000.00716.86
8.0.150.0080.00016.87
8.0.140.0040.00416.92
8.0.130.0050.00013.45
8.0.120.0030.00516.98
8.0.110.0050.00316.85
8.0.100.0030.00516.76
8.0.90.0000.00816.96
8.0.80.0080.01116.88
8.0.70.0000.00717.02
8.0.60.0000.00716.83
8.0.50.0040.00416.83
8.0.30.0100.01017.12
8.0.20.0130.00517.40
8.0.10.0070.00017.15
8.0.00.0100.00916.82
7.4.330.0020.00216.79
7.4.320.0040.00416.54
7.4.300.0030.00316.42
7.4.290.0030.00316.60
7.4.280.0000.00916.59
7.4.270.0000.00616.52
7.4.260.0030.00516.41
7.4.250.0070.00016.47
7.4.240.0030.00516.52
7.4.230.0030.00316.59
7.4.220.0160.00316.50
7.4.210.0140.00516.49
7.4.200.0030.00316.51
7.4.160.0120.00316.34
7.4.150.0190.00317.40
7.4.140.0100.01017.86
7.4.130.0120.00716.67
7.4.120.0060.01516.51
7.4.110.0060.01016.48
7.4.100.0120.00416.43
7.4.90.0100.00716.65
7.4.80.0150.00319.39
7.4.70.0030.02016.60
7.4.60.0130.00616.66
7.4.50.0070.00716.42
7.4.40.0130.00716.39
7.4.30.0040.01816.66
7.4.00.0000.01315.05
7.3.330.0000.00613.32
7.3.320.0030.00313.32
7.3.310.0040.00416.40
7.3.300.0070.00016.24
7.3.290.0050.00216.33
7.3.280.0100.00716.30
7.3.270.0160.00317.40
7.3.260.0060.01216.39
7.3.250.0090.00716.44
7.3.240.0070.01016.38
7.3.230.0080.00816.39
7.3.210.0120.00416.41
7.3.200.0080.00816.35
7.3.190.0130.00316.54
7.3.180.0030.01316.35
7.3.170.0030.01316.27
7.3.160.0080.00816.34
7.2.330.0100.00716.65
7.2.320.0110.00616.73
7.2.310.0130.01016.70
7.2.300.0140.00316.77
7.2.290.0060.01316.77
7.2.00.0000.00919.47
7.1.100.0070.00317.90
7.1.70.0000.00816.86
7.1.60.0070.01819.06
7.1.50.0070.01716.57
7.1.00.0070.07322.41
7.0.200.0050.00316.73
7.0.60.0030.07319.86
7.0.50.0130.07717.84
7.0.40.0130.08020.26
7.0.30.0200.08320.30
7.0.20.0200.05320.19
7.0.10.0070.04720.08
7.0.00.0070.04720.33
5.6.280.0070.04321.00
5.6.210.0030.08720.68
5.6.200.0030.04318.21
5.6.190.0100.08320.67
5.6.180.0030.06020.63
5.6.170.0230.05720.52
5.6.160.0100.03320.57
5.6.150.0070.08318.19
5.6.140.0100.07318.18
5.6.130.0000.04318.25
5.6.120.0000.08321.04
5.6.110.0130.07321.00
5.6.100.0070.05020.98
5.6.90.0070.07720.96
5.6.80.0070.07320.52
5.5.350.0270.06720.50
5.5.340.0030.04017.95
5.5.330.0100.07720.40
5.5.320.0570.06020.30
5.5.310.0270.05320.34
5.5.300.0100.07017.92
5.5.290.0100.08318.03
5.5.280.0070.07320.99
5.5.270.0070.08320.68
5.5.260.0130.08020.77
5.5.250.0100.08020.72
5.5.240.0200.08320.15

preferences:
46.53 ms | 401 KiB | 5 Q