3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Why you don't want to get in the habbit of writing things like clone($foo)... * It might take away from the insight that clone takes an expression, which means * that something like (clone $foo . 'bar') and (clone ($foo . 'bar')) result in * different operator precedences. */ class foo { public function __tostring() { return "I am a foo!"; } } $foo = new foo; var_dump(clone $foo . 'bar'); //vs. clone($foo . 'bar') which evaluate to two totally different expressions...

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.0030.01316.36
8.3.50.0140.00821.20
8.3.40.0090.00618.57
8.3.30.0120.00318.55
8.3.20.0090.00920.21
8.3.10.0030.00623.52
8.3.00.0060.01223.62
8.2.180.0110.00718.41
8.2.170.0090.00622.96
8.2.160.0140.00020.35
8.2.150.0000.01924.18
8.2.140.0060.00324.66
8.2.130.0060.00321.04
8.2.120.0000.00926.35
8.2.110.0040.00720.52
8.2.100.0070.00417.72
8.2.90.0030.00517.84
8.2.80.0030.00519.27
8.2.70.0080.00017.80
8.2.60.0040.00417.80
8.2.50.0060.00318.10
8.2.40.0030.00520.64
8.2.30.0000.00720.50
8.2.20.0000.00817.71
8.2.10.0050.00318.11
8.2.00.0060.00318.01
8.1.280.0040.01425.92
8.1.270.0060.00323.92
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0000.00920.86
8.1.230.0080.00422.77
8.1.220.0050.00317.76
8.1.210.0040.00418.77
8.1.200.0000.00817.48
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0030.00518.66
8.1.160.0040.00422.06
8.1.150.0030.00918.92
8.1.140.0000.00819.59
8.1.130.0000.00817.70
8.1.120.0000.00817.42
8.1.110.0070.00017.46
8.1.100.0050.00517.48
8.1.90.0080.00017.43
8.1.80.0000.00817.43
8.1.70.0000.00717.46
8.1.60.0030.00517.57
8.1.50.0000.00817.57
8.1.40.0040.00417.57
8.1.30.0060.00817.64
8.1.20.0040.00417.59
8.1.10.0030.00517.51
8.1.00.0090.00017.29
8.0.300.0000.00722.04
8.0.290.0000.00716.63
8.0.280.0060.00318.38
8.0.270.0040.00417.21
8.0.260.0000.00717.10
8.0.250.0000.00716.90
8.0.240.0000.00816.82
8.0.230.0040.00416.84
8.0.220.0040.00416.89
8.0.210.0030.00316.80
8.0.200.0030.00316.85
8.0.190.0030.00616.93
8.0.180.0070.00016.96
8.0.170.0060.00316.81
8.0.160.0050.00216.95
8.0.150.0040.00416.87
8.0.140.0030.00516.82
8.0.130.0000.00613.34
8.0.120.0040.00416.73
8.0.110.0000.00716.89
8.0.100.0000.00716.75
8.0.90.0050.00216.75
8.0.80.0080.00816.88
8.0.70.0040.00416.94
8.0.60.0030.00516.73
8.0.50.0000.01116.75
8.0.30.0110.00717.15
8.0.20.0080.01117.40
8.0.10.0080.00017.05
8.0.00.0100.00716.81
7.4.330.0000.00516.89
7.4.320.0000.00716.52
7.4.300.0030.00316.55
7.4.290.0000.00716.50
7.4.280.0040.00416.50
7.4.270.0030.00416.38
7.4.260.0040.00416.56
7.4.250.0070.00016.48
7.4.240.0030.00416.49
7.4.230.0040.00316.59
7.4.220.0030.01616.52
7.4.210.0120.00316.52
7.4.200.0000.00716.36
7.4.160.0040.01116.46
7.4.150.0140.00417.40
7.4.140.0170.01617.86
7.4.130.0090.00816.49
7.4.120.0090.01116.49
7.4.110.0060.01316.45
7.4.100.0030.02016.41
7.4.90.0030.01516.41
7.4.80.0070.01419.39
7.4.70.0170.00016.43
7.4.60.0030.01316.56
7.4.50.0000.01416.50
7.4.40.0100.00716.27
7.4.30.0040.01416.63
7.4.00.0070.01014.94
7.3.330.0000.00513.31
7.3.320.0030.00313.28
7.3.310.0000.00616.20
7.3.300.0070.00016.30
7.3.290.0100.00816.30
7.3.280.0100.00616.27
7.3.270.0120.00617.40
7.3.260.0130.00316.63
7.3.250.0060.01216.29
7.3.240.0070.01116.50
7.3.230.0100.00716.52
7.3.210.0090.00916.25
7.3.200.0060.01016.25
7.3.190.0040.01216.66
7.3.180.0100.00716.56
7.3.170.0110.00916.33
7.3.160.0100.00716.30
7.3.120.0110.00714.71
7.3.110.0100.00714.88
7.3.100.0070.01014.76
7.3.90.0070.00714.57
7.3.80.0030.01114.75
7.3.70.0100.00714.74
7.3.60.0060.00614.73
7.3.50.0070.00714.70
7.3.40.0090.00614.80
7.3.30.0070.00714.85
7.3.20.0030.01316.66
7.3.10.0100.00716.58
7.3.00.0080.00816.49
7.2.330.0130.01016.66
7.2.320.0090.00616.24
7.2.310.0050.01116.52
7.2.300.0130.00616.31
7.2.290.0080.00916.65
7.2.250.0070.01115.07
7.2.240.0100.01015.00
7.2.230.0040.01114.90
7.2.220.0030.01014.95
7.2.210.0140.00315.15
7.2.200.0150.00015.11
7.2.190.0080.00314.81
7.2.180.0080.00814.83
7.2.170.0100.00614.82
7.2.00.0030.01019.37
7.1.330.0040.01115.66
7.1.320.0030.01015.75
7.1.310.0110.00315.77
7.1.300.0030.00615.52
7.1.290.0000.01415.83
7.1.280.0070.00715.63
7.1.270.0090.00615.78
7.1.260.0070.00715.42
7.1.100.0040.00818.32
7.1.70.0020.00517.13
7.1.60.0060.01919.52
7.1.50.0070.01716.80
7.1.00.0030.07722.48
7.0.200.0030.00616.56
7.0.60.0070.04019.96
7.0.50.0170.07017.72
7.0.40.0170.06720.09
7.0.30.0230.04320.15
7.0.20.0370.07720.06
7.0.10.0070.06320.30
7.0.00.0130.08320.12
5.6.280.0000.03321.15
5.6.210.0070.07720.72
5.6.200.0070.03718.14
5.6.190.0100.04020.64
5.6.180.0270.03720.50
5.6.170.0270.07320.46
5.6.160.0130.03320.44
5.6.150.0100.03318.14
5.6.140.0100.07318.21
5.6.130.0100.07718.21
5.6.120.0070.04020.99
5.6.110.0130.06021.01
5.6.100.0070.05020.98
5.6.90.0130.08720.95
5.6.80.0030.08320.37
5.5.350.4300.04020.38
5.5.340.0070.03718.08
5.5.330.0130.06020.21
5.5.320.0230.06020.27
5.5.310.0330.07720.34
5.5.300.0200.06317.98
5.5.290.0070.05717.95
5.5.280.0130.07720.76
5.5.270.0170.07720.88
5.5.260.0070.06720.77
5.5.250.0030.08720.55
5.5.240.0170.07320.37

preferences:
83.05 ms | 401 KiB | 5 Q