3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); function foo(){ return 'string'; } $temp =& foo();

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.1.70.0030.00317.33
8.1.60.0040.00417.45
8.1.50.0040.00417.41
8.1.40.0030.00517.52
8.1.30.0050.00217.65
8.1.20.0030.00517.67
8.1.10.0000.00917.34
8.1.00.0070.00317.35
8.0.200.0030.00317.00
8.0.190.0000.00916.91
8.0.180.0050.00316.98
8.0.170.0000.00716.89
8.0.160.0030.00316.88
8.0.150.0030.00616.68
8.0.140.0000.00816.72
8.0.130.0060.00013.31
8.0.120.0050.00316.73
8.0.110.0040.00416.87
8.0.100.0040.00416.79
8.0.90.0000.00916.88
8.0.80.0100.01016.79
8.0.70.0000.00816.79
8.0.60.0040.00416.84
8.0.50.0000.00716.73
8.0.30.0060.01216.80
8.0.20.0130.00917.40
8.0.10.0040.00416.88
8.0.00.0110.00816.58
7.4.300.0060.00016.41
7.4.290.0070.00016.56
7.4.280.0050.00216.59
7.4.270.0040.00416.41
7.4.260.0070.00016.61
7.4.250.0070.00016.56
7.4.240.0070.00016.52
7.4.230.0030.00516.61
7.4.220.0060.01316.67
7.4.210.0030.01016.53
7.4.200.0000.00716.41
7.4.160.0110.00616.70
7.4.150.0070.01017.40
7.4.140.0170.00517.86
7.4.130.0120.00716.39
7.4.120.0100.00916.46
7.4.110.0030.01316.54
7.4.100.0030.01216.66
7.4.90.0130.01016.31
7.4.80.0100.00619.39
7.4.70.0060.01216.54
7.4.60.0120.00316.53
7.4.50.0060.00916.33
7.4.40.0090.01216.57
7.4.30.0070.01016.56
7.4.00.0080.01015.02
7.3.330.0060.00013.32
7.3.320.0020.00213.33
7.3.310.0000.00716.35
7.3.300.0060.00016.26
7.3.290.0100.01016.27
7.3.280.0090.00816.26
7.3.270.0140.00317.40
7.3.260.0150.00316.37
7.3.240.0110.00616.36
7.3.230.0200.00316.43
7.3.210.0030.01316.15
7.3.200.0030.01316.24
7.3.190.0100.00716.32
7.3.180.0090.00616.47
7.3.170.0100.01016.43
7.3.160.0130.00316.41
7.3.120.0030.01314.51
7.3.110.0090.00914.76
7.3.100.0060.00914.68
7.3.90.0080.00814.87
7.3.80.0130.00314.98
7.3.70.0090.00614.84
7.3.60.0110.00314.56
7.3.50.0060.00314.83
7.3.40.0040.01114.75
7.3.30.0090.00014.85
7.3.20.0100.00316.25
7.3.10.0080.00916.39
7.3.00.0120.00316.47
7.2.330.0060.01016.62
7.2.320.0100.00716.52
7.2.310.0090.00616.09
7.2.300.0130.00316.50
7.2.290.0060.01216.31
7.2.250.0080.00414.96
7.2.240.0040.01114.68
7.2.230.0040.01115.04
7.2.220.0070.01014.86
7.2.210.0070.00714.79
7.2.200.0080.00814.93
7.2.190.0060.00914.89
7.2.180.0040.01114.75
7.2.170.0040.01114.62
7.2.130.0200.00516.48
7.2.120.0130.00516.24
7.2.110.0150.00916.66
7.2.100.0100.01316.30
7.2.90.0210.01116.43
7.2.80.0170.00816.45
7.2.70.0210.00716.39
7.2.60.0110.01016.36
7.2.50.0140.00816.36
7.2.40.0130.00616.57
7.2.30.0120.00516.54
7.2.20.0140.00516.43
7.2.10.0120.00716.51
7.2.00.0140.00717.38
7.1.330.0000.01315.72
7.1.320.0030.00615.41
7.1.310.0120.00315.64
7.1.300.0000.01015.39
7.1.290.0000.01615.69
7.1.280.0090.00315.61
7.1.270.0080.00315.64
7.1.260.0110.00415.77
7.1.250.0130.00715.27
7.1.200.0090.00315.80
7.1.70.0030.00316.80
7.1.60.0000.01116.85
7.1.50.0030.02034.30
7.1.40.0130.01734.14
7.1.30.0100.01334.40
7.1.20.0130.01334.29
7.1.10.0070.00716.39
7.1.00.0000.01016.22
7.0.200.0030.01016.63
7.0.190.0070.00316.57
7.0.180.0000.01015.94
7.0.170.0030.00715.92
7.0.160.0000.01015.93
7.0.150.0030.00716.12
7.0.140.0100.00715.89
7.0.130.0030.00716.28
7.0.120.0070.00716.02
7.0.110.0000.01016.15
7.0.100.0000.01715.94
7.0.90.0070.00316.14
7.0.80.0000.01016.09
7.0.70.0070.00316.25
7.0.60.0030.00716.03
7.0.50.0030.00716.06
7.0.40.0070.00716.29
7.0.30.0070.00316.29
7.0.20.0030.01316.13
7.0.10.0070.01016.17
7.0.00.0000.01015.93

preferences:
11.66 ms | 406 KiB | 5 Q