3v4l.org

run code in 300+ PHP versions simultaneously
<?php function custom_function($value) { static $var = 0; $var += $value; echo "$var\n"; } custom_function(100); custom_function(200);

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.0240.00622.24
8.3.50.0140.00522.03
8.3.40.0170.00923.01
8.3.30.0180.00622.20
8.3.20.0170.00323.31
8.3.10.0150.00522.98
8.3.00.0150.00523.23
8.2.180.0070.00921.12
8.2.170.0220.00324.44
8.2.160.0270.00223.46
8.2.150.0190.00525.05
8.2.140.0190.00725.29
8.2.130.0220.00226.04
8.2.120.0120.01222.85
8.2.110.0140.00722.59
8.2.100.0120.01221.91
8.2.90.0140.00721.84
8.2.80.0150.00622.29
8.2.70.0160.00521.99
8.2.60.0070.00521.98
8.2.50.0170.00322.55
8.2.40.0130.00723.50
8.2.30.0150.00622.52
8.2.20.0140.00721.94
8.2.10.0120.00822.60
8.2.00.0220.00322.51
8.1.280.0380.00725.92
8.1.270.0160.00524.02
8.1.260.0150.00926.14
8.1.250.0190.00427.00
8.1.240.0140.01023.95
8.1.230.0180.00324.35
8.1.220.0120.00921.83
8.1.210.0160.00622.35
8.1.200.0130.00721.57
8.1.190.0110.00821.64
8.1.180.0080.01122.38
8.1.170.0140.00522.26
8.1.160.0130.00822.40
8.1.150.0140.00522.36
8.1.140.0140.00522.37
8.1.130.0130.00823.03
8.1.120.0100.00921.71
8.1.110.0090.01021.70
8.1.100.0140.00621.60
8.1.90.0120.00621.63
8.1.80.0130.00621.64
8.1.70.0090.00921.65
8.1.60.0150.00721.70
8.1.50.0140.00621.75
8.1.40.0150.00521.70
8.1.30.0130.00721.74
8.1.20.0130.00821.78
8.1.10.0130.01021.64
8.1.00.0240.00221.62
8.0.300.0170.00322.35
8.0.290.0110.00721.27
8.0.280.0150.00322.18
8.0.270.0120.00521.40
8.0.260.0090.01022.95
8.0.250.0120.00621.42
8.0.240.0120.00521.41
8.0.230.0150.00421.45
8.0.220.0130.00921.42
8.0.210.0130.00821.39
8.0.200.0100.01021.45
8.0.190.0180.00321.37
8.0.180.0160.00421.39
8.0.170.0170.00221.39
8.0.160.0160.00321.42
8.0.150.0090.00821.38
8.0.140.0120.00421.32
8.0.130.0120.00719.61
8.0.120.0110.01021.38
8.0.110.0160.00221.33
8.0.100.0170.00321.34
8.0.90.0170.00421.40
8.0.80.0160.00719.87
8.0.70.0130.00521.30
8.0.60.0100.00921.43
8.0.50.0110.00821.43
8.0.30.0240.00221.39
8.0.20.0120.00919.84
8.0.10.0090.00921.48
8.0.00.0120.00621.35
7.4.330.0150.00220.73
7.4.320.0140.00321.16
7.4.300.0120.00521.23
7.4.290.0150.00321.16
7.4.280.0110.00621.26
7.4.270.0120.00721.21
7.4.260.0130.00819.60
7.4.250.0140.00721.19
7.4.240.0100.00619.72
7.4.230.0130.00321.29
7.4.220.0090.00619.71
7.4.210.0110.00818.47
7.4.200.0180.00021.15
7.4.190.0230.01025.92
7.4.180.0160.00825.92
7.4.160.0220.00625.92
7.4.150.0220.00425.92
7.4.140.0200.00625.92
7.4.130.0140.00719.70
7.4.120.0120.01221.21
7.4.110.0140.01021.27
7.4.100.0090.01421.16
7.4.90.0180.00321.25
7.4.80.0170.00822.66
7.4.70.0090.01121.16
7.4.60.0160.00621.13
7.4.50.0130.00621.16
7.4.40.0140.00821.15
7.4.30.0120.00919.61
7.4.20.0210.00521.06
7.4.10.0160.00621.26
7.4.00.0130.00921.17
7.3.330.0150.00321.15
7.3.320.0080.00619.61
7.3.310.0140.00221.16
7.3.300.0130.00521.15
7.3.290.0130.00518.72
7.3.280.0170.00521.10
7.3.270.0230.00625.92
7.3.260.0200.00421.14
7.3.250.0200.00525.92
7.3.240.0110.00918.43
7.3.230.0170.01121.19
7.3.220.0150.01925.92
7.3.210.0140.01221.18
7.3.200.0160.00621.12
7.3.190.0170.00721.25
7.3.180.0180.00721.17
7.3.170.0170.00921.18
7.3.160.0150.00821.24
7.3.150.0170.00521.27
7.3.140.0150.00621.11
7.3.130.0110.01021.02
7.3.120.0150.00621.28
7.3.110.0140.00821.16
7.3.100.0170.00521.28
7.3.90.0140.00821.14
7.3.80.0150.00921.08
7.3.70.0150.00621.13
7.3.60.0160.00721.14
7.3.50.0130.01121.08
7.3.40.0170.00921.10
7.3.30.0130.01121.18
7.3.20.0200.00321.14
7.3.10.0160.01021.22
7.3.00.0140.01121.10
7.2.340.0220.00625.92
7.2.330.0180.00721.28
7.2.320.0190.00821.18
7.2.310.0230.00721.23
7.2.300.0170.00521.24
7.2.290.0160.00821.19
7.2.280.0200.00321.26
7.2.270.0140.00621.29
7.2.260.0120.00821.19
7.2.250.0150.00621.21
7.2.240.0130.01121.21
7.2.230.0160.00421.25
7.2.220.0130.00921.19
7.2.210.0210.00221.03
7.2.200.0140.01221.17
7.2.190.0130.01021.15
7.2.180.0100.01321.08
7.2.170.0160.00721.16
7.2.160.0090.01321.16
7.2.150.0160.00721.12
7.2.140.0190.00221.17
7.2.130.0150.00721.19
7.2.120.0160.00821.16
7.2.110.0150.01221.15
7.2.100.0170.00821.15
7.2.90.0140.01121.17
7.2.80.0160.00921.12
7.2.70.0150.00721.14
7.2.60.0150.00721.23
7.2.50.0220.00721.13
7.2.40.0150.01021.25
7.2.30.0210.00521.16
7.2.20.0170.01121.16
7.2.10.0150.00821.20
7.2.00.0140.00821.26

preferences:
53.97 ms | 401 KiB | 5 Q