3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); function a(){ return 'string'; } function b($c){ return $c; } $cleanup_applications = array(1,2,3,4,5); //$app_id =1; //$instance = & $cleanup_applications[$app_id]; $e =&a(); $f = &b(a());

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.0110.00718.81
8.3.50.0080.01021.09
8.3.40.0090.00918.75
8.3.30.0110.00318.62
8.3.20.0030.00618.66
8.3.10.0000.00821.48
8.3.00.0020.00518.89
8.2.180.0120.00318.29
8.2.170.0030.01722.96
8.2.160.0100.00719.23
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00421.07
8.2.120.0000.00826.35
8.2.110.0140.00022.14
8.2.100.0160.00017.72
8.2.90.0040.00417.84
8.2.80.0000.00718.03
8.2.70.0000.00917.25
8.2.60.0040.00417.93
8.2.50.0080.00318.10
8.2.40.0000.00820.46
8.2.30.0050.00320.62
8.2.20.0030.00517.55
8.2.10.0070.00017.94
8.2.00.0000.00717.98
8.1.280.0090.00625.92
8.1.270.0040.00423.85
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0050.00522.27
8.1.230.0070.00420.88
8.1.220.0000.00917.79
8.1.210.0000.00818.90
8.1.200.0040.00417.00
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0060.00318.52
8.1.160.0040.00419.00
8.1.150.0000.00718.69
8.1.140.0070.00019.50
8.1.130.0000.00717.63
8.1.120.0000.00717.44
8.1.110.0040.00417.41
8.1.100.0000.00717.41
8.1.90.0030.00717.35
8.1.80.0000.00717.36
8.1.70.0030.00517.41
8.1.60.0000.00817.57
8.1.50.0000.00817.34
8.1.40.0050.00317.54
8.1.30.0030.00617.61
8.1.20.0000.00717.51
8.1.10.0030.00617.24
8.1.00.0040.00417.30
8.0.300.0000.00819.98
8.0.290.0040.00416.75
8.0.280.0040.00418.31
8.0.270.0060.00317.07
8.0.260.0000.00717.17
8.0.250.0000.00716.85
8.0.240.0000.00716.94
8.0.230.0000.00716.96
8.0.220.0000.00916.89
8.0.210.0000.00816.86
8.0.200.0060.00016.83
8.0.190.0050.00316.96
8.0.180.0050.00216.91
8.0.170.0040.00416.96
8.0.160.0000.00716.93
8.0.150.0080.00016.83
8.0.140.0070.00416.75
8.0.130.0030.00313.31
8.0.120.0000.00816.75
8.0.110.0000.00716.83
8.0.100.0000.00816.78
8.0.90.0030.00316.95
8.0.80.0050.01416.88
8.0.70.0000.00716.68
8.0.60.0000.00716.88
8.0.50.0040.00416.91
8.0.30.0080.00817.01
8.0.20.0140.00617.40
8.0.10.0000.00717.07
8.0.00.0100.01116.81
7.4.330.0050.00015.11
7.4.320.0060.00016.50
7.4.300.0000.00616.58
7.4.290.0070.00316.50
7.4.280.0040.00416.49
7.4.270.0070.00016.57
7.4.260.0000.00716.46
7.4.250.0000.00816.38
7.4.240.0000.00816.62
7.4.230.0030.00316.30
7.4.220.0060.01316.54
7.4.210.0080.00816.53
7.4.200.0000.00716.57
7.4.160.0100.01316.44
7.4.150.0070.01117.40
7.4.140.0100.00717.86
7.4.130.0060.01116.37
7.4.120.0070.01116.37
7.4.110.0090.00916.44
7.4.100.0070.01416.39
7.4.90.0130.00616.57
7.4.80.0150.00619.39
7.4.70.0100.00716.26
7.4.60.0090.00916.57
7.4.50.0040.01116.19
7.4.40.0240.00316.34
7.4.30.0070.01116.57
7.4.00.0030.01015.08
7.3.330.0000.00713.27
7.3.320.0030.00313.23
7.3.310.0020.00516.33
7.3.300.0060.00016.25
7.3.290.0090.00516.27
7.3.280.0070.00916.26
7.3.270.0220.01017.40
7.3.260.0210.00316.52
7.3.250.0090.00816.40
7.3.240.0130.00616.50
7.3.230.0100.00716.39
7.3.210.0090.00916.29
7.3.200.0040.01116.28
7.3.190.0080.00816.24
7.3.180.0080.00816.25
7.3.170.0080.00916.31
7.3.160.0150.00316.51
7.2.330.0080.00816.58
7.2.320.0070.01516.22
7.2.310.0100.00916.61
7.2.300.0050.01116.52
7.2.290.0040.01216.42
7.2.60.0120.00316.59
7.2.00.0030.00918.95
7.1.200.0090.00315.24
7.1.100.0040.00818.01
7.1.70.0050.00317.19
7.1.60.0130.00619.13
7.1.50.0030.01334.66
7.1.00.0030.07722.54
7.0.200.0060.00614.71
7.0.60.0200.08720.04
7.0.50.0030.06320.32
7.0.40.0700.05720.20
7.0.30.0530.05320.32
7.0.20.0500.06320.23
7.0.10.0700.05720.34
7.0.00.0630.06320.35
5.6.280.0000.07720.86
5.6.210.0130.07020.51
5.6.200.0070.03718.27
5.6.190.0670.06721.05
5.6.180.0170.05321.14
5.6.170.0530.05721.05
5.6.160.0530.05721.06
5.6.150.0600.05720.95
5.6.140.0170.05021.15
5.6.130.0570.04720.94
5.6.120.0070.06320.94
5.6.110.0500.05321.04
5.6.100.0370.06721.14
5.6.90.0170.07021.14
5.6.80.0530.05020.55
5.6.70.0500.05020.48
5.6.60.0230.05020.50
5.6.50.0270.04720.29
5.6.40.0200.06320.51
5.6.30.0300.04320.41
5.6.20.0270.06320.40
5.6.10.0270.05020.51
5.6.00.0230.06020.42
5.5.350.4000.04020.43
5.5.340.0070.07717.99
5.5.330.0630.05321.04
5.5.320.0600.07020.88
5.5.310.0770.05720.88
5.5.300.0030.06320.98
5.5.290.0070.06320.88
5.5.280.0230.05720.93
5.5.270.0600.04320.90
5.5.260.0500.06021.00
5.5.250.0100.06320.66
5.5.240.0530.05320.08
5.5.230.0500.05720.16
5.5.220.0130.05720.29
5.5.210.0200.05320.04
5.5.200.0170.05020.23
5.5.190.0200.05720.31
5.5.180.0200.07320.17
5.5.160.0370.04020.19
5.5.150.0230.04720.36
5.5.140.0130.06020.23
5.5.130.0170.06020.23
5.5.120.0200.04320.04
5.5.110.0130.07020.15
5.5.100.0330.05020.10
5.5.90.0200.06020.12
5.5.80.0200.05320.11
5.5.70.0270.07720.08
5.5.60.0270.04720.11
5.5.50.0130.06020.14
5.5.40.0300.04720.14
5.5.30.0300.07020.23
5.5.20.0130.06320.01
5.5.10.0270.04720.14
5.5.00.0170.05320.13

preferences:
64.45 ms | 401 KiB | 5 Q