3v4l.org

run code in 300+ PHP versions simultaneously
<?php $commands = new \SplStack(); $commands->push(1); $commands->push(2); $commands->rewind(); while (!$commands->isEmpty()) { $cmd = $commands->pop(); echo "$cmd\n"; } echo 'count: '.$commands->count();

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.0070.01416.63
8.3.50.0070.00717.90
8.3.40.0030.01318.85
8.3.30.0070.00718.51
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.180.0040.01225.92
8.2.170.0150.00018.84
8.2.160.0160.00322.96
8.2.150.0070.00025.66
8.2.140.0050.00224.66
8.2.130.0070.00026.16
8.2.120.0050.00226.35
8.2.110.0030.00719.17
8.2.100.0080.00417.66
8.2.90.0080.00018.22
8.2.80.0040.00419.03
8.2.70.0050.00317.63
8.2.60.0060.00317.50
8.2.50.0070.00317.50
8.2.40.0050.00317.63
8.2.30.0030.00619.23
8.2.20.0000.00718.04
8.2.10.0050.00319.31
8.2.00.0000.00719.29
8.1.280.0070.01025.92
8.1.270.0050.00223.99
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0030.00623.97
8.1.230.0090.00320.89
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0030.00719.14
8.1.190.0050.00317.22
8.1.180.0090.00018.10
8.1.170.0050.00318.63
8.1.160.0050.00218.99
8.1.150.0040.00418.89
8.1.140.0040.00418.89
8.1.130.0000.00720.14
8.1.120.0040.00317.35
8.1.110.0080.00017.46
8.1.100.0070.00017.43
8.1.90.0030.00317.45
8.1.80.0000.00817.49
8.1.70.0000.00817.46
8.1.60.0040.00417.54
8.1.50.0000.00817.53
8.1.40.0060.00317.41
8.1.30.0040.00417.51
8.1.20.0030.00617.63
8.1.10.0000.00817.46
8.1.00.0000.00917.49
8.0.300.0070.00020.14
8.0.290.0030.00616.63
8.0.280.0030.00318.31
8.0.270.0000.00716.88
8.0.260.0000.00718.29
8.0.250.0000.00616.88
8.0.240.0000.00716.95
8.0.230.0000.00816.94
8.0.220.0030.00316.87
8.0.210.0050.00316.88
8.0.200.0000.00716.94
8.0.190.0040.00416.90
8.0.180.0000.00716.87
8.0.170.0000.00916.78
8.0.160.0020.00516.87
8.0.150.0000.00716.76
8.0.140.0040.00416.73
8.0.130.0030.00313.18
8.0.120.0000.00816.75
8.0.110.0000.00716.91
8.0.100.0050.00216.82
8.0.90.0030.00416.73
8.0.80.0030.01016.91
8.0.70.0000.00716.82
8.0.60.0000.00716.87
8.0.50.0040.00316.94
8.0.30.0060.01017.13
8.0.20.0070.01317.09
8.0.10.0040.00416.90
8.0.00.0120.01216.72
7.4.330.0050.00015.55
7.4.320.0060.00016.64
7.4.300.0000.00616.60
7.4.290.0070.00016.52
7.4.280.0050.00316.57
7.4.270.0060.00016.61
7.4.260.0000.00513.16
7.4.250.0030.00316.39
7.4.240.0070.00016.43
7.4.230.0030.00316.59
7.4.220.0060.00116.41
7.4.210.0110.00516.44
7.4.200.0000.00716.53
7.4.130.0130.00416.44
7.4.120.0100.01016.61
7.4.110.0160.00916.45
7.4.100.0110.00616.32
7.4.90.0130.00716.35
7.4.80.0100.00719.39
7.4.70.0080.01516.32
7.4.60.0140.00816.36
7.4.50.0120.00616.28
7.4.40.0000.01716.47
7.4.30.0140.00916.18
7.4.20.0200.00516.52
7.4.10.0080.01616.27
7.4.00.0080.01616.32
7.3.330.0000.00716.22
7.3.320.0050.00013.09
7.3.310.0070.00016.11
7.3.300.0030.00516.23
7.3.290.0080.01116.24
7.3.280.0100.01216.37
7.3.260.0060.01516.21
7.3.240.0090.00816.29
7.3.230.0110.00816.26
7.3.210.0060.01216.22
7.3.200.0120.00316.40
7.3.190.0080.00916.14
7.3.180.0040.01216.38
7.3.170.0080.00916.50
7.3.160.0090.01216.17
7.3.150.0130.00916.45
7.3.140.0150.00916.23
7.3.130.0190.00516.55
7.3.120.0130.01116.22
7.3.110.0090.01516.21
7.3.100.0160.00816.45
7.3.90.0120.01216.35
7.3.80.0040.01916.36
7.3.70.0090.00916.30
7.3.60.0090.00916.25
7.3.50.0100.01016.41
7.3.40.0050.01416.32
7.3.30.0120.00616.29
7.3.20.0120.00716.30
7.3.10.0140.00616.08
7.3.00.0030.01316.26
7.2.330.0090.00916.47
7.2.320.0120.00416.73
7.2.310.0160.00716.34
7.2.300.0100.00616.66
7.2.290.0130.01016.71
7.2.280.0080.01516.80
7.2.270.0130.01216.52
7.2.260.0080.01716.40
7.2.250.0120.01216.80
7.2.240.0180.00716.40
7.2.230.0140.01016.54
7.2.220.0100.01516.61
7.2.210.0120.00616.37
7.2.200.0090.00916.38
7.2.190.0120.00616.46
7.2.180.0130.00516.47
7.2.170.0170.00316.67
7.2.160.0060.01316.68
7.2.150.0120.01016.59
7.2.140.0130.00716.60
7.2.130.0060.01216.60
7.2.120.0100.00716.51
7.2.110.0000.01816.68
7.2.100.0060.01316.69
7.2.90.0110.00916.43
7.2.80.0110.00816.65
7.2.70.0090.00916.40
7.2.60.0110.00916.46
7.2.50.0110.00816.55
7.2.40.0210.00416.77
7.2.30.0100.01016.36
7.2.20.0110.00816.44
7.2.10.0140.00616.54
7.2.00.0110.00816.57

preferences:
66.14 ms | 400 KiB | 5 Q