3v4l.org

run code in 300+ PHP versions simultaneously
<?php function staticCount() { static $counter = 0; echo $counter; $counter = $counter + 1; echo ' '; } staticCount(); staticCount(); staticCount();

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.130.0080.00018.37
8.3.120.0030.00620.55
8.3.110.0170.00320.94
8.3.100.0070.00316.62
8.3.90.0120.00926.77
8.3.80.0100.00318.14
8.3.70.0120.00616.63
8.3.60.0060.01016.50
8.3.50.0120.00216.53
8.3.40.0120.00618.47
8.3.30.0080.00818.59
8.3.20.0040.00421.69
8.3.10.0000.00821.71
8.3.00.0070.00021.76
8.2.250.0040.00416.45
8.2.240.0090.00619.02
8.2.230.0000.00822.58
8.2.220.0080.00037.54
8.2.210.0080.00026.77
8.2.200.0030.00716.63
8.2.190.0110.00416.58
8.2.180.0110.00418.16
8.2.170.0120.00322.96
8.2.160.0100.00720.43
8.2.150.0000.00824.18
8.2.140.0060.01224.66
8.2.130.0040.00421.03
8.2.120.0070.00026.35
8.2.110.0000.01022.12
8.2.100.0080.00417.84
8.2.90.0040.00422.38
8.2.80.0040.00417.97
8.2.70.0060.00317.93
8.2.60.0100.00018.04
8.2.50.0000.00918.22
8.2.40.0040.00420.59
8.2.30.0000.00719.48
8.2.20.0040.00417.95
8.2.10.0040.00417.97
8.2.00.0000.00818.10
8.1.300.0060.00318.41
8.1.290.0060.00330.84
8.1.280.0120.00625.92
8.1.270.0040.00421.89
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00322.47
8.1.230.0070.00320.99
8.1.220.0000.00817.74
8.1.210.0000.00818.95
8.1.200.0000.00917.35
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0050.00318.73
8.1.160.0050.00318.87
8.1.150.0040.00418.99
8.1.140.0000.00717.61
8.1.130.0030.00318.95
8.1.120.0040.00417.49
8.1.110.0000.00917.48
8.1.100.0000.00717.33
8.1.90.0070.00017.37
8.1.80.0000.00917.28
8.1.70.0060.00317.27
8.1.60.0090.00017.58
8.1.50.0060.00317.44
8.1.40.0070.00017.41
8.1.30.0110.00017.52
8.1.20.0040.00417.53
8.1.10.0060.00317.48
8.1.00.0030.00617.43
8.0.300.0030.00519.90
8.0.290.0000.00816.88
8.0.280.0030.00318.44
8.0.270.0070.00017.12
8.0.260.0040.00417.11
8.0.250.0000.00817.00
8.0.240.0030.00516.90
8.0.230.0000.00717.03
8.0.220.0030.00316.83
8.0.210.0030.00316.93
8.0.200.0000.00617.02
8.0.190.0000.00916.96
8.0.180.0000.00716.93
8.0.170.0030.00616.84
8.0.160.0000.00816.80
8.0.150.0040.00416.80
8.0.140.0040.00416.88
8.0.130.0030.00313.39
8.0.120.0030.00516.89
8.0.110.0080.00016.90
8.0.100.0080.00016.95
8.0.90.0040.00416.92
8.0.80.0000.01417.00
8.0.70.0000.00716.83
8.0.60.0040.00416.89
8.0.50.0040.00416.88
8.0.30.0110.00817.09
8.0.20.0100.01117.40
8.0.10.0040.00416.86
8.0.00.0070.01016.77
7.4.330.0050.00015.55
7.4.320.0000.00716.44
7.4.300.0000.00716.56
7.4.290.0070.00016.48
7.4.280.0070.00016.47
7.4.270.0070.00016.59
7.4.260.0000.00916.46
7.4.250.0040.00416.47
7.4.240.0060.00016.49
7.4.230.0040.00416.47
7.4.220.0090.00016.29
7.4.210.0110.00616.48
7.4.200.0040.00416.70
7.4.160.0090.00816.51
7.4.140.0090.01017.86
7.4.130.0060.01216.39
7.4.120.0090.00816.48
7.4.110.0130.00316.52
7.4.100.0100.00716.64
7.4.90.0120.00616.66
7.4.80.0040.02019.39
7.4.70.0060.01116.36
7.4.60.0030.01316.46
7.4.50.0030.01116.21
7.4.40.0070.01116.44
7.4.10.0070.01014.74
7.4.00.0030.01014.99
7.3.330.0030.00513.15
7.3.320.0060.00013.29
7.3.310.0000.00716.32
7.3.300.0000.00716.21
7.3.290.0030.00316.23
7.3.280.0080.00716.25
7.3.260.0080.01316.57
7.3.240.0110.00616.54
7.3.230.0070.01116.41
7.3.210.0150.00016.48
7.3.200.0120.00616.32
7.3.190.0160.00016.37
7.3.180.0060.01216.17
7.3.170.0080.00816.43
7.3.160.0100.00716.24
7.3.130.0110.00714.84
7.3.120.0110.00714.98
7.3.110.0050.01014.95
7.3.100.0120.00314.83
7.3.90.0060.00914.68
7.3.80.0030.00714.98
7.3.70.0110.00314.71
7.3.60.0070.01014.83
7.3.50.0000.01814.95
7.3.40.0070.00714.78
7.3.30.0070.00714.73
7.3.20.0090.00316.65
7.3.10.0090.00916.61
7.3.00.0060.00916.46
7.2.330.0150.00316.57
7.2.320.0070.01116.57
7.2.310.0120.00616.50
7.2.300.0100.00616.28
7.2.290.0030.01716.74
7.2.260.0070.01314.72
7.2.250.0110.00315.17
7.2.240.0030.01015.17
7.2.230.0040.01114.92
7.2.220.0000.01214.75
7.2.210.0040.00814.99
7.2.200.0030.00614.88
7.2.190.0000.01914.89
7.2.180.0070.01014.83
7.2.170.0040.01115.02
7.2.160.0060.00914.75
7.2.150.0070.01016.86
7.2.140.0030.01216.73
7.2.130.0060.00316.68
7.2.120.0040.01116.72
7.2.110.0070.01016.93
7.2.100.0030.01417.07
7.2.90.0060.00916.85
7.2.80.0060.00317.05
7.2.70.0070.00716.73
7.2.60.0110.00716.86
7.2.50.0090.00316.59
7.2.40.1870.01117.37
7.2.30.1210.00917.50
7.2.20.0400.01217.38
7.2.10.0160.01017.34
7.2.00.0430.00917.31
7.1.330.0030.01015.43
7.1.320.0060.01015.98
7.1.310.0060.00915.69
7.1.300.0000.01815.52
7.1.290.0100.00715.57
7.1.280.0040.00815.71
7.1.270.0030.01215.85
7.1.260.0140.00015.41
7.1.250.0040.00815.65
7.1.240.0080.00815.73
7.1.230.0080.00815.91
7.1.220.0000.01515.82
7.1.210.0000.01315.70
7.1.200.0020.01215.74
7.1.190.0120.00315.81
7.1.180.0000.00815.72
7.1.170.0070.01015.44
7.1.160.1690.01316.16
7.1.150.1420.01016.33
7.1.140.0380.01016.35
7.1.130.0410.00816.32
7.1.120.0390.01016.07
7.1.110.1140.00915.87
7.1.100.0340.01215.99
7.1.90.1310.00915.85
7.1.80.1070.00815.96
7.1.70.1210.01015.43
7.1.60.1300.01027.32
7.1.50.1660.01027.07
7.1.40.2350.01126.89
7.1.30.2120.01126.90
7.1.20.2180.01126.88
7.1.10.2320.00914.97
7.1.00.2170.00815.00
7.0.330.0000.01015.34
7.0.320.0090.00315.44
7.0.310.0070.00315.36
7.0.300.0050.00815.23
7.0.290.0060.00315.35
7.0.280.0090.00315.39
7.0.270.0030.00915.39
7.0.260.0000.01115.48
7.0.250.0040.00715.19
7.0.240.0150.00415.36
7.0.230.0090.00315.40
7.0.220.0030.00715.35
7.0.210.0030.01015.60
7.0.200.0110.00415.39
7.0.190.0000.01315.24
7.0.180.0080.00515.45
7.0.170.0030.01215.46
7.0.160.0030.01015.43
7.0.150.0090.00615.39
7.0.140.0080.00415.12
7.0.130.0040.00715.12
7.0.120.0000.01315.33
7.0.110.0120.00315.10
7.0.100.0040.01115.23
7.0.90.0000.01015.21
7.0.80.0000.01015.20
7.0.70.0120.00015.06
7.0.60.0080.00815.42
7.0.50.0030.00715.57
7.0.40.0040.01213.46
7.0.30.0100.00313.48
7.0.20.0030.01013.47
7.0.10.0050.00313.59
7.0.00.0040.01113.52
5.6.400.0070.01013.99
5.6.390.0070.01114.28
5.6.380.0060.00614.50
5.6.370.0090.00614.30
5.6.360.0030.00914.09
5.6.350.0090.00314.11
5.6.340.0000.01114.52
5.6.330.0040.00414.24
5.6.320.0070.00714.09
5.6.310.0080.00814.13
5.6.300.0030.01014.21
5.6.290.0000.01414.06
5.6.280.0000.01314.44
5.6.270.0070.00714.45
5.6.260.0030.01214.09
5.6.250.0030.00714.34
5.6.240.0040.01114.37
5.6.230.0040.00714.12
5.6.220.0080.00314.14
5.6.210.0030.00614.08
5.6.200.0090.00014.21
5.6.190.0110.00314.27
5.6.180.0030.00614.12
5.6.170.0110.00314.21
5.6.160.0090.00614.37
5.6.150.0040.01114.16
5.6.140.0110.00014.38
5.6.130.0080.00414.06
5.6.120.0030.01014.39
5.6.110.0060.00914.18
5.6.100.0030.01014.36
5.6.90.0110.00714.25
5.6.80.0070.00714.16
5.6.70.0090.00614.38
5.6.60.0100.00314.09
5.6.50.0030.00814.54
5.6.40.0050.00314.15
5.6.30.0050.00514.06
5.6.20.0040.01214.16
5.6.10.0100.00314.21
5.6.00.0030.01014.42

preferences:
63.2 ms | 403 KiB | 5 Q