3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attempts = array(); $localTaskId = 3; $attempts[$localTaskId] = isset ($attempts[$localTaskId]) ? (++ $attempts[$localTaskId]) : ($attempts[$localTaskId] = 1); echo $attempts[$localTaskId]."\n"; $attempts[$localTaskId] = isset ($attempts[$localTaskId]) ? (++ $attempts[$localTaskId]) : ($attempts[$localTaskId] = 1); echo $attempts[$localTaskId]."\n";

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.0080.00816.63
8.3.50.0140.00717.63
8.3.40.0100.00718.88
8.3.30.0060.00918.79
8.3.20.0100.00018.74
8.3.10.0040.00420.66
8.3.00.0000.00817.50
8.2.180.0110.00416.75
8.2.170.0100.01022.96
8.2.160.0040.01120.59
8.2.150.0140.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00519.95
8.2.110.0030.00621.03
8.2.100.0110.00017.91
8.2.90.0040.00419.30
8.2.80.0000.00718.04
8.2.70.0000.00817.63
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0000.00818.16
8.2.30.0040.00417.99
8.2.20.0030.00517.62
8.2.10.0040.00417.66
8.2.00.0000.00717.73
8.1.280.0140.00725.92
8.1.270.0050.00324.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00020.94
8.1.230.0070.00420.88
8.1.220.0000.00917.74
8.1.210.0000.00918.99
8.1.200.0090.00017.23
8.1.190.0000.00717.51
8.1.180.0030.00618.10
8.1.170.0000.00718.71
8.1.160.0060.00318.75
8.1.150.0000.00718.54
8.1.140.0050.00217.34
8.1.130.0030.00317.82
8.1.120.0000.00717.38
8.1.110.0000.00717.49
8.1.100.0050.00317.43
8.1.90.0040.00417.34
8.1.80.0030.00317.48
8.1.70.0050.00317.35
8.1.60.0080.00017.56
8.1.50.0030.00817.34
8.1.40.0030.00517.49
8.1.30.0070.00017.64
8.1.20.0030.00517.65
8.1.10.0040.00417.47
8.1.00.0050.00217.39
8.0.300.0030.00619.88
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0000.00717.29
8.0.260.0030.00316.71
8.0.250.0000.00716.82
8.0.240.0040.00416.96
8.0.230.0030.00316.96
8.0.220.0030.00316.91
8.0.210.0000.00716.89
8.0.200.0040.00416.83
8.0.190.0040.00416.94
8.0.180.0000.00716.83
8.0.170.0090.00016.87
8.0.160.0080.00016.91
8.0.150.0040.00416.74
8.0.140.0000.00716.83
8.0.130.0000.00513.27
8.0.120.0000.00816.87
8.0.110.0030.00316.88
8.0.100.0070.00016.77
8.0.90.0030.00316.83
8.0.80.0030.01316.92
8.0.70.0070.00016.70
8.0.60.0050.00216.81
8.0.50.0000.00816.72
8.0.30.0080.01117.32
8.0.20.0100.01217.17
8.0.10.0000.00716.81
8.0.00.0140.01016.73
7.4.330.0000.00512.95
7.4.320.0000.00716.35
7.4.300.0030.00316.29
7.4.290.0000.00716.34
7.4.280.0060.00316.51
7.4.270.0070.00316.59
7.4.260.0070.00013.19
7.4.250.0050.00316.52
7.4.240.0030.00316.46
7.4.230.0060.00016.59
7.4.220.0160.01016.43
7.4.210.0080.00816.48
7.4.200.0000.00716.46
7.4.190.0000.00816.57
7.4.160.0040.01116.54
7.4.150.0120.01216.49
7.4.140.0070.01116.42
7.4.130.0140.00816.33
7.4.120.0120.00916.44
7.4.110.0090.00916.61
7.4.100.0090.00916.55
7.4.90.0090.01416.32
7.4.80.0100.01016.63
7.4.70.0080.00816.26
7.4.60.0060.01216.51
7.4.50.0050.00216.61
7.4.40.0110.00716.43
7.4.30.0130.01016.36
7.4.00.0090.00314.87
7.3.330.0060.00013.07
7.3.320.0050.00013.22
7.3.310.0000.00716.14
7.3.300.0070.00016.32
7.3.290.0130.00316.38
7.3.280.0100.00816.33
7.3.270.0180.00716.52
7.3.260.0140.00616.36
7.3.250.0120.00416.57
7.3.240.0030.01316.54
7.3.230.0070.01016.46
7.3.210.0100.00916.36
7.3.200.0120.00519.39
7.3.190.0030.01816.56
7.3.180.0070.01016.41
7.3.170.0100.01016.49
7.3.160.0040.01116.29
7.3.120.0030.01014.99
7.3.110.0000.01314.45
7.3.100.0060.00614.68
7.3.90.0000.01014.72
7.3.80.0100.00014.72
7.3.70.0110.00414.86
7.3.60.0090.00614.55
7.3.50.0030.01014.89
7.3.40.0030.00915.00
7.3.30.0040.00914.74
7.3.20.0040.01116.77
7.3.10.0070.00716.58
7.3.00.0100.00316.74
7.2.330.0180.00016.68
7.2.320.0130.01016.49
7.2.310.0060.01616.79
7.2.300.0090.00916.45
7.2.290.0140.00316.71
7.2.240.0110.00415.20
7.2.230.0030.01414.91
7.2.220.0030.01314.96
7.2.210.0000.01815.06
7.2.200.0040.00715.00
7.2.190.0000.01315.09
7.2.180.0040.01115.08
7.2.170.0000.01515.04
7.2.160.0090.00615.04
7.2.150.0090.00616.83
7.2.140.0070.00416.79
7.2.130.0000.01317.02
7.2.120.0070.01116.93
7.2.110.0040.01116.81
7.2.100.0040.01116.79
7.2.90.0000.01016.98
7.2.80.0000.01317.05
7.2.70.0060.00916.88
7.2.60.0090.00616.95
7.2.50.0130.00316.70
7.2.40.0060.00916.93
7.2.30.0000.01317.08
7.2.20.0100.00616.93
7.2.10.0030.00916.90
7.2.00.0080.00817.99
7.1.330.0040.00815.89
7.1.320.0090.00615.52
7.1.310.0030.01015.87
7.1.300.0050.00615.62
7.1.290.0000.01015.88
7.1.280.0030.00715.85
7.1.270.0060.00315.84
7.1.260.0070.00715.92
7.1.250.0000.01515.89
7.1.200.0030.00715.85
7.1.100.0040.00818.17
7.1.70.0040.00417.16
7.1.60.0070.01119.40
7.1.50.0160.00034.74
7.1.00.0000.06022.44
7.0.200.0000.00716.70
7.0.140.0070.06722.06
7.0.120.0030.06322.00
7.0.60.0130.06019.91
7.0.50.0070.04017.80
7.0.40.0200.06317.75
7.0.30.0070.08717.78
7.0.20.0130.07717.79
7.0.10.0070.05717.67
7.0.00.0130.07717.72
5.6.280.0100.06720.80
5.6.210.0100.06720.60
5.6.200.0130.07018.12
5.6.190.0130.07718.09
5.6.180.0070.04318.12
5.6.170.0030.08018.13
5.6.160.0170.06318.21
5.6.150.0130.05318.12
5.6.140.0030.04018.22
5.6.130.0130.03718.14
5.6.120.0070.07718.21
5.6.110.0070.05018.14
5.6.100.0030.04018.20
5.6.90.0030.08318.19
5.6.80.0100.07317.60
5.6.70.0070.07717.54
5.6.60.0030.05017.45
5.6.50.0000.04017.45
5.6.40.0070.03317.56
5.6.30.0100.03017.53
5.6.20.0030.04717.43
5.6.10.0200.06717.57
5.6.00.0030.07717.55
5.5.350.0070.08020.41
5.5.340.0030.04718.02
5.5.330.0030.05017.98
5.5.320.0070.03717.89
5.5.310.0030.08017.92
5.5.300.0100.07018.01
5.5.290.0070.07717.98
5.5.280.0070.04317.94
5.5.270.0100.03317.96
5.5.260.0030.04318.00
5.5.250.0100.04017.76
5.5.240.0100.03717.37
5.5.230.0030.07017.36
5.5.220.0070.07717.36
5.5.210.0070.08317.39
5.5.200.0070.06017.34
5.5.190.0000.08317.36
5.5.180.0070.04017.22
5.5.160.0070.08017.34
5.5.150.0030.03717.24
5.5.140.0200.04017.23
5.5.130.0130.06017.25
5.5.120.0030.03717.26
5.5.110.0030.04317.36
5.5.100.0070.08017.24
5.5.90.0100.07317.17
5.5.80.0070.08017.17
5.5.70.0030.03717.25
5.5.60.0030.03717.21
5.5.50.0030.06317.23
5.5.40.0070.07317.21
5.5.30.0000.04017.11
5.5.20.0000.05317.25
5.5.10.0070.08017.21
5.5.00.0030.07017.11
5.4.450.0000.08319.30
5.4.440.0070.08319.34
5.4.430.0000.04019.23
5.4.420.0000.04719.30
5.4.410.0100.04019.14
5.4.400.0070.05019.04
5.4.390.0170.03319.03
5.4.380.0000.04318.99
5.4.370.0030.05018.98
5.4.360.0030.04018.98
5.4.350.0070.05318.89
5.4.340.0030.03718.89
5.4.320.0070.03718.82
5.4.310.0000.04018.98
5.4.300.0070.03319.09
5.4.290.0070.07718.95
5.4.280.0030.05019.03
5.4.270.0000.04019.09
5.4.260.0100.06019.01
5.4.250.0100.07018.98
5.4.240.0030.04719.13
5.4.230.0070.07318.90
5.4.220.0030.04018.79
5.4.210.0070.07718.98
5.4.200.0000.04718.88
5.4.190.0100.03019.11
5.4.180.0030.04318.95
5.4.170.0100.06319.11
5.4.160.0030.03718.96
5.4.150.0130.06318.96
5.4.140.0070.04016.34
5.4.130.0030.04716.27
5.4.120.0170.05316.35
5.4.110.0030.04316.25
5.4.100.0030.03716.28
5.4.90.0070.03016.23
5.4.80.0070.05716.24
5.4.70.0030.06016.24
5.4.60.0000.03716.50
5.4.50.0000.03716.25
5.4.40.0030.05716.55
5.4.30.0130.06316.19
5.4.20.0030.03316.24
5.4.10.0030.03316.22
5.4.00.0100.02715.70
5.3.290.0030.03714.60
5.3.280.0070.03314.56
5.3.270.0070.05014.46
5.3.260.0030.06714.57
5.3.250.0000.05714.43
5.3.240.0070.07014.56
5.3.230.0000.07314.37
5.3.220.0030.07014.51
5.3.210.0070.07314.34
5.3.200.0030.03714.42
5.3.190.0000.04014.34
5.3.180.0100.07014.41
5.3.170.0030.05314.55
5.3.160.0000.05714.48
5.3.150.0000.04014.39
5.3.140.0000.04314.48
5.3.130.0000.04014.50
5.3.120.0070.06014.37
5.3.110.0030.04314.50
5.3.100.0030.03713.97
5.3.90.0070.05313.95
5.3.80.0070.07314.00
5.3.70.0100.06713.96
5.3.60.0070.07313.96
5.3.50.0100.06713.87
5.3.40.0100.04013.89
5.3.30.0030.03313.84
5.3.20.0030.03713.63
5.3.10.0030.04013.58
5.3.00.0130.05013.60
5.2.170.0030.04711.04
5.2.160.0030.06011.12
5.2.150.0030.03311.29
5.2.140.0070.04710.92
5.2.130.0100.05011.06
5.2.120.0030.06011.08
5.2.110.0030.06011.08
5.2.100.0070.03310.92
5.2.90.0030.03711.07
5.2.80.0030.03011.07
5.2.70.0030.06311.04
5.2.60.0030.03011.03
5.2.50.0100.02710.98
5.2.40.0030.03310.92
5.2.30.0000.03310.93
5.2.20.0000.04010.91
5.2.10.0000.04310.91
5.2.00.0030.06310.71
5.1.60.0030.0539.96
5.1.50.0070.0539.93
5.1.40.0000.0309.93
5.1.30.0000.02710.36
5.1.20.0070.03310.19
5.1.10.0030.02310.09
5.1.00.0100.0179.98
5.0.50.0000.0508.37
5.0.40.0000.0478.43
5.0.30.0030.0638.29
5.0.20.0030.0408.39
5.0.10.0070.0308.26
5.0.00.0030.0478.19
4.4.90.0030.0307.61
4.4.80.0000.0207.61
4.4.70.0030.0177.61
4.4.60.0000.0337.61
4.4.50.0000.0207.61
4.4.40.0030.0537.61
4.4.30.0000.0237.61
4.4.20.0030.0377.61
4.4.10.0030.0377.61
4.4.00.0030.0477.61
4.3.110.0070.0277.61
4.3.100.0000.0177.61
4.3.90.0030.0337.61
4.3.80.0000.0277.61
4.3.70.0100.0107.61
4.3.60.0000.0237.61
4.3.50.0030.0277.61
4.3.40.0000.0277.61
4.3.30.0000.0377.61
4.3.20.0100.0207.61
4.3.10.0030.0177.61
4.3.00.0030.0177.61

preferences:
54.17 ms | 401 KiB | 5 Q