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.4.20.0170.00317.67
8.4.10.0030.00717.86
8.3.150.0150.00416.61
8.3.140.0070.00016.63
8.3.130.0030.00616.98
8.3.120.0040.00418.96
8.3.110.0090.00020.94
8.3.100.0060.00324.06
8.3.90.0070.00326.77
8.3.80.0090.00017.97
8.3.70.0190.00318.56
8.3.60.0030.01716.88
8.3.50.0110.00721.09
8.3.40.0090.00618.66
8.3.30.0120.00318.54
8.3.20.0090.00019.04
8.3.10.0080.00021.60
8.3.00.0040.00422.49
8.2.260.0100.00717.24
8.2.250.0110.00717.26
8.2.240.0090.00017.32
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0000.00726.77
8.2.200.0090.00416.61
8.2.190.0170.00318.43
8.2.180.0120.00916.75
8.2.170.0070.01422.96
8.2.160.0070.00718.75
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.64
8.2.110.0150.00922.15
8.2.100.0090.00317.91
8.2.90.0000.00822.34
8.2.80.0000.00817.97
8.2.70.0000.00918.04
8.2.60.0000.00917.80
8.2.50.0040.00418.10
8.2.40.0040.00419.04
8.2.30.0090.00019.42
8.2.20.0040.00417.89
8.2.10.0040.00417.86
8.2.00.0000.00718.18
8.1.310.0120.00616.53
8.1.300.0060.00317.89
8.1.290.0060.00318.88
8.1.280.0140.00725.92
8.1.270.0000.00722.18
8.1.260.0040.00726.35
8.1.250.0080.00028.09
8.1.240.0100.00022.33
8.1.230.0090.00320.97
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0050.00317.35
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0040.00418.48
8.1.160.0000.00718.87
8.1.150.0050.00218.62
8.1.140.0050.00319.41
8.1.130.0060.00318.80
8.1.120.0030.00317.44
8.1.110.0040.00417.30
8.1.100.0040.00417.27
8.1.90.0070.00017.21
8.1.80.0070.00017.42
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.300.0070.00020.02
8.0.290.0040.00416.75
8.0.280.0030.00318.27
8.0.270.0030.00317.18
8.0.260.0030.00318.91
8.0.250.0070.00016.96
8.0.240.0000.00716.86
8.0.230.0030.00616.84
8.0.220.0000.00816.77
8.0.210.0000.00716.75
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.330.0000.00815.55
7.4.320.0030.00316.36
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:
33.86 ms | 403 KiB | 5 Q