3v4l.org

run code in 300+ PHP versions simultaneously
<?php /// Example 4 $str = "Simple text"; $temp = ""; $a = function() { global $str, $temp; $temp = &$str; }; $a(); echo "[".$str."] [".$temp."]\n"; /// [Simple text] []

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.0090.00616.75
8.3.50.0120.00918.05
8.3.40.0070.00718.57
8.3.30.0070.01018.66
8.3.20.0170.00020.25
8.3.10.0040.00423.71
8.3.00.0040.00422.40
8.2.180.0110.00816.50
8.2.170.0170.00022.96
8.2.160.0150.00319.33
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00422.25
8.2.120.0070.00026.35
8.2.110.0100.00019.27
8.2.100.0060.00617.91
8.2.90.0080.00018.93
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0080.00018.04
8.2.50.0000.00818.10
8.2.40.0000.00822.27
8.2.30.0040.00419.17
8.2.20.0000.00717.68
8.2.10.0000.00718.01
8.2.00.0040.00417.74
8.1.280.0140.00725.92
8.1.270.0080.00023.73
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0030.00623.80
8.1.230.0060.00617.60
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0040.00417.39
8.1.180.0000.00818.10
8.1.170.0080.00018.46
8.1.160.0000.00722.10
8.1.150.0030.00618.89
8.1.140.0020.00519.55
8.1.130.0030.00317.70
8.1.120.0000.00717.46
8.1.110.0030.00517.48
8.1.100.0040.00417.43
8.1.90.0070.00017.44
8.1.80.0000.00717.45
8.1.70.0040.00417.36
8.1.60.0000.00817.59
8.1.50.0040.00417.52
8.1.40.0040.00417.52
8.1.30.0040.00417.63
8.1.20.0000.00717.62
8.1.10.0000.00717.55
8.1.00.0020.00517.49
8.0.300.0090.00318.77
8.0.290.0000.00816.75
8.0.280.0070.00018.32
8.0.270.0070.00017.25
8.0.260.0000.00617.36
8.0.250.0040.00416.89
8.0.240.0030.00316.94
8.0.230.0000.00817.00
8.0.220.0050.00216.86
8.0.210.0070.00016.88
8.0.200.0040.00416.81
8.0.190.0040.00416.98
8.0.180.0050.00316.77
8.0.170.0000.00816.79
8.0.160.0070.00016.92
8.0.150.0000.00816.72
8.0.140.0000.00816.77
8.0.130.0000.00513.32
8.0.120.0050.00316.84
8.0.110.0030.00516.84
8.0.100.0000.00716.82
8.0.90.0050.00316.79
8.0.80.0140.00316.77
8.0.70.0000.00716.76
8.0.60.0070.00016.75
8.0.50.0050.00216.94
8.0.30.0120.00817.19
8.0.20.0090.01017.40
8.0.10.0040.00417.07
8.0.00.0060.01216.73
7.4.330.0000.00515.08
7.4.320.0000.00616.59
7.4.300.0030.00316.51
7.4.290.0000.00716.48
7.4.280.0080.00016.52
7.4.270.0080.00016.53
7.4.260.0040.00416.58
7.4.250.0000.00816.47
7.4.240.0050.00316.46
7.4.230.0000.00716.68
7.4.220.0100.01016.68
7.4.210.0040.01516.63
7.4.200.0030.00516.34
7.4.160.0100.00716.53
7.4.150.0130.00417.40
7.4.140.0120.00917.86
7.4.130.0080.01216.43
7.4.120.0080.00816.38
7.4.110.0130.00716.44
7.4.100.0070.01016.41
7.4.90.0070.01016.55
7.4.80.0090.00919.39
7.4.70.0060.01716.44
7.4.60.0060.01216.50
7.4.50.0070.01116.30
7.4.40.0180.00016.57
7.4.30.0090.00916.39
7.4.00.0090.00915.13
7.3.330.0020.00213.37
7.3.320.0030.00313.30
7.3.310.0040.00416.34
7.3.300.0060.00016.38
7.3.290.0070.00916.29
7.3.280.0060.01216.29
7.3.270.0160.00617.40
7.3.260.0090.01016.45
7.3.250.0120.00616.23
7.3.240.0110.00616.29
7.3.230.0060.01016.40
7.3.210.0070.01016.42
7.3.200.0040.01116.64
7.3.190.0210.00616.46
7.3.180.0060.01016.37
7.3.170.0130.00316.30
7.3.160.0030.01516.26
7.2.330.0040.01816.73
7.2.320.0140.00616.72
7.2.310.0090.00916.68
7.2.300.0140.01116.66
7.2.290.0120.00916.51
7.2.80.0060.00616.52
7.2.60.0070.00716.82
7.2.00.0070.01319.42
7.1.200.0130.00315.40
7.1.100.0030.00918.03
7.1.70.0070.00316.84
7.1.60.0070.01317.18
7.1.00.0100.07022.43
7.0.200.0070.01016.71
7.0.100.0070.06020.04
7.0.90.0100.05719.93
7.0.80.0130.05020.06
7.0.70.0070.05719.97
7.0.60.0130.05019.94
7.0.50.0030.06020.38
7.0.40.0170.05320.36
7.0.30.2300.06320.43
7.0.20.0100.05720.36
7.0.10.0100.05720.31
7.0.00.0070.06320.41
5.6.250.0000.06720.70
5.6.240.0100.05320.73
5.6.230.0030.06020.82
5.6.220.0030.06020.61
5.6.210.0000.06320.84
5.6.200.0170.05021.08
5.6.190.0030.06321.09
5.6.180.0070.05721.09
5.6.170.0100.05721.14
5.6.160.0170.05021.11
5.6.150.0200.05721.17
5.6.140.0100.05721.03
5.6.130.0000.06321.11
5.6.120.0130.05321.13
5.6.110.0100.05321.09
5.6.100.0070.05721.07
5.6.90.0130.05021.12
5.6.80.0130.04720.50
5.6.70.0100.05020.46
5.6.60.0070.05320.51
5.6.50.0170.04720.47
5.6.40.0070.05320.44
5.6.30.0100.05020.45
5.6.20.0130.04720.45
5.6.10.0100.05320.51
5.6.00.0130.04720.42

preferences:
56.24 ms | 401 KiB | 5 Q