3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ' A0'; for ($i=0;$i<20;$i++) var_dump($a++);

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.0.0beta10.0130.00616.44
8.0.0alpha30.0090.00916.58
8.0.0alpha20.0120.00916.64
8.0.0alpha10.0040.01416.41
7.4.90.0110.00816.37
7.4.80.0170.00616.50
7.4.70.0130.00316.42
7.4.60.0100.00716.36
7.4.50.0030.00616.35
7.4.40.0130.00022.77
7.4.30.0070.01316.48
7.4.10.0070.01314.86
7.4.00.0080.01014.81
7.3.210.0040.01416.18
7.3.200.0100.01319.39
7.3.190.0040.01916.64
7.3.180.0110.00716.14
7.3.170.0060.00916.50
7.3.160.0120.01216.38
7.3.130.0070.01114.98
7.3.120.0080.00914.86
7.3.110.0100.00715.04
7.3.100.0070.00714.82
7.3.90.0000.01414.98
7.3.80.0090.00614.51
7.3.70.0030.01014.67
7.3.60.0000.01414.75
7.3.50.0090.00614.82
7.3.40.0040.01114.72
7.3.30.0030.00914.86
7.3.20.0000.01116.45
7.3.10.0110.00816.36
7.3.00.0070.00716.59
7.2.330.0130.01016.59
7.2.320.0250.03116.65
7.2.310.0150.00416.64
7.2.300.0120.00616.63
7.2.290.0100.01316.66
7.2.260.0030.01614.99
7.2.250.0130.00314.80
7.2.240.0090.00614.89
7.2.230.0070.01014.70
7.2.220.0030.00615.20
7.2.210.0030.01315.08
7.2.200.0120.00314.71
7.2.190.0040.00914.70
7.2.180.0110.00415.05
7.2.170.0100.00315.08
7.2.160.0060.00615.05
7.2.150.0080.00316.95
7.2.140.0090.00016.89
7.2.130.0110.00316.87
7.2.120.0070.00716.81
7.2.110.0090.00316.75
7.2.100.0110.00316.84
7.2.90.0060.00916.77
7.2.80.0100.00516.77
7.2.70.0120.00316.84
7.2.60.0100.00816.83
7.2.50.0070.00616.90
7.2.40.0090.00516.93
7.2.30.0090.00916.74
7.2.20.0050.00716.89
7.2.10.0070.00916.66
7.2.00.0050.01016.63
7.1.330.0140.00015.81
7.1.320.0060.00315.43
7.1.310.0030.01215.80
7.1.300.0070.00715.49
7.1.290.0040.01115.55
7.1.280.0070.00715.78
7.1.270.0060.00615.72
7.1.260.0000.01015.70
7.1.250.0030.01115.94
7.1.240.0000.00815.64
7.1.230.0000.01115.48
7.1.220.0060.00615.83
7.1.210.0070.00715.69
7.1.200.0060.00615.61
7.1.190.0100.00315.86
7.1.180.0080.00415.85
7.1.170.0070.00715.73
7.1.160.0100.00315.62
7.1.150.0060.00815.81
7.1.140.0070.01015.83
7.1.130.0060.00815.66
7.1.120.0000.00815.77
7.1.110.0000.01315.56
7.1.100.0040.00715.38
7.1.90.0050.01215.69
7.1.80.0000.01315.72
7.1.70.0030.01016.40
7.1.60.0110.00317.59
7.1.50.0130.00525.30
7.1.40.0000.01315.59
7.1.30.0030.01015.83
7.1.20.0070.01015.73
7.1.10.0100.00315.44
7.1.00.0090.03819.14
7.0.330.0030.01015.25
7.0.320.0130.00315.27
7.0.310.0040.00415.28
7.0.300.0040.01115.19
7.0.290.0080.00615.14
7.0.280.0040.00414.97
7.0.270.0040.00415.11
7.0.260.0060.00614.97
7.0.250.0040.00815.40
7.0.240.0090.00915.19
7.0.230.0030.01315.10
7.0.220.0070.01015.39
7.0.210.0070.00315.09
7.0.200.0030.00816.03
7.0.190.0130.00315.32
7.0.180.0000.01615.34
7.0.170.0040.01215.56
7.0.160.0090.00515.14
7.0.150.0060.01215.30
7.0.140.0040.04418.68
7.0.130.0040.00815.15
7.0.120.0090.00315.41
7.0.110.0060.00315.37
7.0.100.0070.04317.67
7.0.90.0070.04717.61
7.0.80.0050.04517.56
7.0.70.0260.03417.45
7.0.60.0250.04517.73
7.0.50.0250.04117.87
7.0.40.0100.04116.70
7.0.30.0050.04816.84
7.0.20.0060.03816.76
7.0.10.0050.04816.71
7.0.00.0080.04516.77
5.6.400.0000.01114.46
5.6.390.0040.00413.96
5.6.380.0090.00614.02
5.6.370.0030.01014.34
5.6.360.0030.00614.09
5.6.350.0100.00713.95
5.6.340.0060.00314.19
5.6.330.0150.00014.40
5.6.320.0040.01114.31
5.6.310.0040.00814.16
5.6.300.0030.01314.32
5.6.290.0000.00913.94
5.6.280.0080.03817.65
5.6.270.0100.00314.19
5.6.260.0080.00014.53
5.6.250.0150.03517.46
5.6.240.0060.04317.41
5.6.230.0100.04317.52
5.6.220.0080.04117.31
5.6.210.0080.04217.38
5.6.200.0110.04017.48
5.6.190.0020.05317.61
5.6.180.0100.04017.56
5.6.170.0120.03717.58
5.6.160.0100.04317.50
5.6.150.0080.02817.83
5.6.140.0050.03017.41
5.6.130.0090.03817.54
5.6.120.0060.04617.60
5.6.110.0070.04417.45
5.6.100.0070.04217.78
5.6.90.0060.04317.62
5.6.80.0120.03817.25
5.6.70.0040.04417.21
5.6.60.0100.03617.20
5.6.50.0110.04217.29
5.6.40.0050.04017.14
5.6.30.0040.03217.42
5.6.20.0100.03917.24
5.6.10.0060.02517.22
5.6.00.0020.04717.25
5.5.380.0030.04717.16
5.5.370.0080.04317.29
5.5.360.0090.03417.28
5.5.350.0030.04817.25
5.5.340.0020.03017.44
5.5.330.0080.04217.53
5.5.320.0050.04517.57
5.5.310.0070.02817.62
5.5.300.0050.04217.55
5.5.290.0020.04717.34
5.5.280.0100.04217.49
5.5.270.0070.04217.37
5.5.260.0070.03617.55
5.5.250.0060.04617.32
5.5.240.0120.03817.06
5.5.230.0120.04317.04
5.5.220.0050.04417.19
5.5.210.0050.04317.12
5.5.200.0080.04017.22
5.5.190.0080.03817.17
5.5.180.0150.03516.98
5.5.170.0000.01314.01
5.5.160.0150.03317.17
5.5.150.0140.03217.26
5.5.140.0050.04417.12
5.5.130.0050.03717.12
5.5.120.0070.03717.10
5.5.110.0120.04017.20
5.5.100.0050.04317.00
5.5.90.0060.04416.91
5.5.80.0030.04617.12
5.5.70.0060.03716.95
5.5.60.0130.03617.07
5.5.50.0060.03717.22
5.5.40.0050.04117.17
5.5.30.0080.04017.09
5.5.20.0140.03017.21
5.5.10.0100.03717.14
5.5.00.0130.01817.08
5.4.450.0090.03216.24
5.4.440.0050.04216.41
5.4.430.0070.04216.45
5.4.420.0080.04016.37
5.4.410.0070.04016.24
5.4.400.0060.04116.21
5.4.390.0080.04016.20
5.4.380.0070.03916.15
5.4.370.0050.04316.15
5.4.360.0070.04016.15
5.4.350.0000.04616.19
5.4.340.0100.03816.08
5.4.330.0030.00613.35
5.4.320.0110.03616.18
5.4.310.0060.02616.12
5.4.300.0080.03816.19
5.4.290.0060.03316.08
5.4.280.0080.03616.14
5.4.270.0070.04316.07
5.4.260.0130.03516.24
5.4.250.0000.02816.23
5.4.240.0080.03816.21
5.4.230.0090.02716.08
5.4.220.0050.03616.15
5.4.210.0030.04016.24
5.4.200.0050.04016.20
5.4.190.0040.02516.23
5.4.180.0050.03516.21
5.4.170.0100.02716.19
5.4.160.0070.03316.18
5.4.150.0070.03716.21
5.4.140.0050.02814.79
5.4.130.0090.03514.83
5.4.120.0070.02314.78
5.4.110.0050.02714.83
5.4.100.0050.04114.85
5.4.90.0050.03614.85
5.4.80.0090.03514.78
5.4.70.0070.03814.89
5.4.60.0070.03314.79
5.4.50.0050.03414.86
5.4.40.0070.02314.87
5.4.30.0030.04014.88
5.4.20.0080.02814.79
5.4.10.0110.03314.83
5.4.00.0080.03314.55
5.3.290.0030.03813.98
5.3.280.0080.03513.90
5.3.270.0050.04013.91
5.3.260.0080.02913.93
5.3.250.0100.03413.96
5.3.240.0090.03513.89
5.3.230.0070.03813.88
5.3.220.0080.02713.89
5.3.210.0060.04313.89
5.3.200.0050.04113.96
5.3.190.0060.04213.96
5.3.180.0060.03813.86
5.3.170.0060.02313.87
5.3.160.0050.03013.93
5.3.150.0050.04213.92
5.3.140.0050.03513.92
5.3.130.0050.03913.94
5.3.120.0070.04213.92
5.3.110.0030.04313.87
5.3.100.0050.04013.70
5.3.90.0060.02613.68
5.3.80.0050.04013.65
5.3.70.0070.03713.57
5.3.60.0070.03913.60
5.3.50.0070.04113.63
5.3.40.0030.04213.57
5.3.30.0090.03513.56
5.3.20.0050.04013.45
5.3.10.0040.02913.50
5.3.00.0040.03913.49
5.2.170.0030.06311.13
5.2.160.0030.06011.13
5.2.150.0130.05311.13
5.2.140.0070.05311.14
5.2.130.0070.05311.02
5.2.120.0030.06011.15
5.2.110.0070.06310.89
5.2.100.0030.06311.08
5.2.90.0070.05310.93
5.2.80.0030.04711.12
5.2.70.0030.06311.01
5.2.60.0100.06011.05
5.2.50.0070.04711.07
5.2.40.0070.06010.98
5.2.30.0030.06011.02
5.2.20.0100.06010.96
5.2.10.0100.05310.78
5.2.00.0030.05010.75
5.1.60.0030.04310.45
5.1.50.0000.05010.45
5.1.40.0100.04710.45
5.1.30.0070.05710.45
5.1.20.0100.05010.45
5.1.10.0070.04710.45
5.1.00.0000.05710.45
5.0.50.0030.05010.45
5.0.40.0100.03710.45
5.0.30.0100.05710.45
5.0.20.0100.04010.45
5.0.10.0070.03010.45
5.0.00.0030.06710.45
4.4.90.0030.03710.45
4.4.80.0030.01710.45
4.4.70.0070.02710.45
4.4.60.0000.04010.45
4.4.50.0000.03010.45
4.4.40.0030.02710.45
4.4.30.0070.03310.45
4.4.20.0030.03710.45
4.4.10.0030.03010.45
4.4.00.0070.05010.45
4.3.110.0000.03710.45
4.3.100.0030.03310.45
4.3.90.0030.03310.45
4.3.80.0030.05710.45
4.3.70.0070.03010.45
4.3.60.0030.03310.45
4.3.50.0070.01310.45
4.3.40.0030.02710.45
4.3.30.0000.03710.45
4.3.20.0070.02310.45
4.3.10.0030.02710.45
4.3.00.0030.02310.45