3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(&$var) { $var++; } function bar() // Note the missing & { $a = 5; return $a; } foo(bar()); // Produces fatal error since PHP 5.0.5 foo($a = 5); // Expression, not variable foo(5); // Produces fatal error

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.0130.00318.68
8.3.50.0140.00322.05
8.3.40.0090.00618.78
8.3.30.0120.00319.21
8.3.20.0060.00320.34
8.3.10.0000.00821.92
8.3.00.0000.00822.43
8.2.180.0070.00716.75
8.2.170.0120.00322.96
8.2.160.0070.01320.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0100.00326.16
8.2.120.0060.00317.50
8.2.110.0090.00022.21
8.2.100.0030.00618.77
8.1.280.0070.00725.92
8.1.270.0040.00422.14
8.1.260.0070.00026.35
8.1.250.0070.00728.09
8.1.240.0070.00418.49
8.1.230.0090.00018.55
5.4.270.0070.04112.39
5.4.260.0090.05615.69
5.4.250.0100.05215.63
5.4.240.0070.05315.74
5.4.230.0170.04715.78
5.4.220.0070.04915.66
5.4.210.0100.05015.78
5.4.200.0120.05515.67
5.4.190.0100.05615.61
5.4.180.0150.04915.66
5.4.170.0130.05114.61
5.4.160.0060.04914.64
5.4.150.0180.05914.61
5.4.140.0090.05113.61
5.4.130.0100.04713.55
5.4.120.0110.05013.57
5.4.110.0100.05213.53
5.4.100.0130.04613.52
5.4.90.0110.05113.55
5.4.80.0090.05113.50
5.4.70.0150.05513.47
5.4.60.0100.05213.52
5.4.50.0150.04113.52
5.4.40.0130.04013.55
5.4.30.0110.04513.53
5.4.20.0140.04513.43
5.4.10.0150.04313.50
5.4.00.0120.04313.01
5.3.280.0160.04913.79
5.3.270.0150.04813.44
5.3.260.0120.05013.44
5.3.250.0120.04913.41
5.3.240.0100.04813.36
5.3.230.0150.04613.35
5.3.220.0120.04513.37
5.3.210.0100.04813.32
5.3.200.0140.05313.37
5.3.190.0110.04713.32
5.3.180.0130.04113.37
5.3.170.0110.05013.39
5.3.160.0130.05313.32
5.3.150.0140.05513.36
5.3.140.0160.04013.38
5.3.130.0140.04813.25
5.3.120.0110.05213.31
5.3.110.0120.05413.35
5.3.100.0130.04712.86
5.3.90.0160.06312.80
5.3.80.0120.05212.80
5.3.70.0110.05212.79
5.3.60.0100.04512.81
5.3.50.0110.05012.72
5.3.40.0080.05112.75
5.3.30.0110.04312.72
5.3.20.0100.04612.48
5.3.10.0110.03912.36
5.3.00.0130.04312.30
5.2.170.0110.0389.92
5.2.160.0080.0389.92
5.2.150.0110.0619.92
5.2.140.0080.0379.84
5.2.130.0110.0389.82
5.2.120.0090.0339.90
5.2.110.0120.0459.89
5.2.100.0080.0389.90
5.2.90.0080.0439.87
5.2.80.0120.0349.89
5.2.70.0070.0389.76
5.2.60.0090.0369.78
5.2.50.0120.0489.76
5.2.40.0110.0359.71
5.2.30.0090.0419.78
5.2.20.0110.0339.69
5.2.10.0120.0389.57
5.2.00.0070.0409.52
5.1.60.0090.0328.80
5.1.50.0080.0338.78
5.1.40.0130.0368.80
5.1.30.0110.0299.12
5.1.20.0090.0369.07
5.1.10.0080.0308.89
5.1.00.0100.0298.88
5.0.50.0080.0277.33
5.0.40.0080.0267.13
5.0.30.0130.0507.04
5.0.20.0060.0237.00
5.0.10.0060.0276.88
5.0.00.0050.0386.83
4.4.90.0060.0215.67
4.4.80.0060.0195.65
4.4.70.0040.0205.65
4.4.60.0020.0225.65
4.4.50.0060.0175.66
4.4.40.0060.0295.62
4.4.30.0070.0195.65
4.4.20.0060.0205.71
4.4.10.0060.0175.71
4.4.00.0090.0425.65
4.3.110.0090.0165.59
4.3.100.0040.0195.59
4.3.90.0050.0185.56
4.3.80.0070.0345.52
4.3.70.0070.0205.56
4.3.60.0060.0185.55
4.3.50.0010.0245.55
4.3.40.0070.0325.50
4.3.30.0060.0194.67
4.3.20.0050.0194.66
4.3.10.0030.0214.64
4.3.00.0170.0277.11

preferences:
35.13 ms | 400 KiB | 5 Q