3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'a'; var_dump(++$a); $a2 = 'a'; var_dump($a2 + 1);

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.70.0080.00816.88
8.3.60.0090.00916.88
8.3.50.0030.01020.07
8.3.40.0100.01020.55
8.3.30.0080.00818.66
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.190.0040.01818.66
8.2.180.0080.00825.92
8.2.170.0150.00619.14
8.2.160.0100.00322.96
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00026.16
8.2.110.0140.00720.39
8.2.100.0030.01017.72
8.2.90.0080.00017.75
8.2.80.0000.00818.73
8.2.70.0080.00017.50
8.2.60.0050.00317.68
8.2.50.0050.00318.07
8.2.40.0040.00420.07
8.2.30.0040.00418.11
8.2.20.0030.00618.09
8.2.10.0000.01021.00
8.2.00.0070.00019.14
8.1.280.0100.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0120.00624.02
8.1.230.0040.00817.70
8.1.220.0040.00417.75
8.1.210.0090.00018.77
8.1.200.0060.00317.38
8.1.190.0000.00917.23
8.1.180.0050.00318.10
8.1.170.0000.00918.65
8.1.160.0040.00418.81
8.1.150.0000.00718.63
8.1.140.0000.00718.66
8.1.130.0090.00018.80
8.1.120.0040.00417.43
8.1.110.0000.00817.40
8.1.100.0070.00017.39
8.1.90.0000.00817.34
8.1.80.0090.00017.28
8.1.70.0040.00417.29
8.1.60.0000.00817.46
8.1.50.0060.00317.49
8.1.40.0000.01217.46
8.1.30.0040.00417.62
8.1.20.0030.00617.66
8.1.10.0040.00417.47
8.1.00.0060.00317.56
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.29
8.0.270.0030.00317.99
8.0.260.0060.00018.56
8.0.250.0030.00516.98
8.0.240.0000.00816.89
8.0.230.0000.00816.97
8.0.220.0000.00816.77
8.0.210.0000.00716.77
8.0.200.0000.00716.93
8.0.190.0000.00716.96
8.0.180.0030.00716.93
8.0.170.0030.00516.83
8.0.160.0000.00716.92
8.0.150.0000.00716.79
8.0.140.0040.00416.74
8.0.130.0060.00013.29
8.0.120.0040.00416.83
8.0.110.0000.00816.69
8.0.100.0000.01016.87
8.0.90.0050.00316.94
8.0.80.0080.00016.71
8.0.70.0050.00316.71
8.0.60.0050.00316.73
8.0.50.0000.00816.78
8.0.30.0040.00416.91
8.0.20.0050.00517.01
8.0.10.0060.00316.83
8.0.00.0020.00517.07
7.4.330.0000.00515.55
7.4.320.0060.00016.52
7.4.300.0030.00316.43
7.4.290.0000.00716.47
7.4.280.0000.00816.52
7.4.270.0070.00016.43
7.4.260.0050.00313.21
7.4.250.0000.00716.50
7.4.240.0040.00416.29
7.4.230.0000.00716.27
7.4.220.0070.00016.43
7.4.210.0030.00516.50
7.4.200.0000.00816.60
7.4.190.0000.00716.30
7.4.180.0050.00316.46
7.4.160.0040.00416.60
7.4.150.0020.00516.53
7.4.140.0040.00416.27
7.4.130.0000.00716.08
7.4.120.0040.00416.35
7.4.110.0040.00416.11
7.4.100.0000.00816.55
7.4.90.0040.00416.31
7.4.80.0030.00316.36
7.4.70.0030.00516.43
7.4.60.0000.00816.16
7.4.50.0000.00716.44
7.4.40.0000.00716.02
7.4.30.0030.00516.22
7.4.20.0040.00416.14
7.4.10.0050.00216.29
7.4.00.0080.00016.18
7.3.330.0070.00016.13
7.3.320.0030.00313.31
7.3.310.0070.00016.16
7.3.300.0000.00716.27
7.3.290.0000.00816.27
7.3.280.0030.00316.15
7.3.270.0070.00016.25
7.3.260.0000.00816.17
7.3.250.0050.00216.21
7.3.240.0030.00616.23
7.3.230.0040.00416.21
7.3.220.0000.00716.18
7.3.210.0030.00616.28
7.3.200.0030.00316.30
7.3.190.0060.00316.22
7.3.180.0080.00016.09
7.3.170.0040.00316.27
7.3.160.0000.00916.27
7.3.150.0040.00416.26
7.3.140.0060.00316.20
7.3.130.0000.00716.23
7.3.120.0080.00016.16
7.3.110.0040.00416.23
7.3.100.0030.00316.15
7.3.90.0040.00416.54
7.3.80.0040.00416.25
7.3.70.0070.00016.16
7.3.60.0070.00016.35
7.3.50.0080.00016.27
7.3.40.0070.00016.39
7.3.30.0070.00016.24
7.3.20.0050.00216.31
7.3.10.0140.00716.15
7.3.00.0030.00616.21

preferences:
22.45 ms | 401 KiB | 5 Q