3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0; function foobar($a) { if ($a < 51) { echo "$a\n"; foobar($a + 1); } } print foobar();

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.0130.00918.55
8.3.50.0080.01021.09
8.3.40.0040.01118.82
8.3.30.0030.01318.70
8.3.20.0060.00320.15
8.3.10.0000.00823.52
8.3.00.0080.00023.46
8.2.180.0040.01318.36
8.2.170.0110.00318.96
8.2.160.0100.01022.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0080.00019.70
8.2.120.0000.00826.35
8.2.110.0100.00021.11
8.2.100.0090.00317.93
8.2.90.0050.00219.05
8.2.80.0050.00517.97
8.2.70.0090.00017.63
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0040.00422.05
8.2.30.0000.00719.47
8.2.20.0070.00017.55
8.2.10.0000.00818.11
8.2.00.0030.00518.05
8.1.280.0060.00925.92
8.1.270.0030.00623.96
8.1.260.0070.00028.09
8.1.250.0000.00828.09
8.1.240.0060.00323.92
8.1.230.0080.00319.11
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.51
8.1.160.0000.00720.70
8.1.150.0000.00718.73
8.1.140.0040.00419.45
8.1.130.0000.00817.63
8.1.120.0050.00217.39
8.1.110.0000.00717.40
8.1.100.0000.00817.39
8.1.90.0030.00517.32
8.1.80.0040.00417.38
8.1.70.0000.00717.42
8.1.60.0040.00417.51
8.1.50.0030.00517.46
8.1.40.0080.00017.50
8.1.30.0030.00617.58
8.1.20.0000.00817.59
8.1.10.0040.00417.50
8.1.00.0040.00817.52
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0000.00718.37
8.0.270.0070.00017.08
8.0.260.0030.00317.18
8.0.250.0070.00016.99
8.0.240.0000.00716.84
8.0.230.0000.00716.83
8.0.220.0080.00016.86
8.0.210.0030.00316.91
8.0.200.0030.00316.93
8.0.190.0050.00316.80
8.0.180.0070.00016.80
8.0.170.0080.00016.86
8.0.160.0000.00716.87
8.0.150.0070.00016.87
8.0.140.0000.00716.73
8.0.130.0030.00313.31
8.0.120.0000.00816.86
8.0.110.0000.00716.93
8.0.100.0040.00416.70
8.0.90.0000.00816.75
8.0.80.0000.01416.86
8.0.70.0040.00416.89
8.0.60.0070.00016.90
8.0.50.0000.00716.95
8.0.30.0080.01117.15
8.0.20.0140.00717.40
8.0.10.0020.00516.91
8.0.00.0130.00816.78
7.4.330.0000.00516.79
7.4.320.0000.00616.55
7.4.300.0030.00716.50
7.4.290.0030.00316.50
7.4.280.0000.00916.50
7.4.270.0000.00716.61
7.4.260.0000.01016.57
7.4.250.0040.00416.36
7.4.240.0000.00816.53
7.4.230.0000.00716.50
7.4.220.0070.01116.71
7.4.210.0110.00616.60
7.4.200.0050.00216.67
7.4.160.0100.00616.50
7.4.150.0140.00417.40
7.4.140.0110.00617.86
7.4.130.0130.00416.50
7.4.120.0080.01016.44
7.4.110.0030.01416.64
7.4.100.0070.01016.40
7.4.90.0060.01216.57
7.4.80.0090.00919.39
7.4.70.0140.00316.63
7.4.60.0000.01616.39
7.4.50.0090.00616.36
7.4.40.0080.00816.43
7.4.30.0040.01516.62
7.4.10.0100.00714.86
7.4.00.0060.01014.86
7.3.330.0000.00513.26
7.3.320.0000.00613.22
7.3.310.0030.00316.31
7.3.300.0030.00316.30
7.3.290.0080.00016.24
7.3.280.0090.00616.29
7.3.270.0110.01117.40
7.3.260.0140.00316.51
7.3.250.0100.00916.38
7.3.240.0090.00916.45
7.3.230.0060.01516.39
7.3.210.0060.01616.57
7.3.200.0070.01019.39
7.3.190.0100.00716.30
7.3.180.0100.00616.45
7.3.170.0030.01316.36
7.3.160.0180.00616.52
7.3.130.0100.00314.74
7.3.120.0080.01214.95
7.3.110.0070.01014.71
7.3.100.0070.01114.70
7.3.90.0080.00814.67
7.3.80.0030.00714.76
7.3.70.0100.00614.75
7.3.60.0000.01214.85
7.3.50.0050.00514.33
7.3.40.0150.00014.67
7.3.30.0040.00714.84
7.3.20.0070.01016.71
7.3.10.0000.01516.61
7.3.00.0070.01016.57
7.2.330.0180.00016.55
7.2.320.0040.01216.32
7.2.310.0070.01016.44
7.2.300.0070.01716.39
7.2.290.0170.00016.21
7.2.260.0120.00614.84
7.2.250.0100.00314.83
7.2.240.0120.00614.82
7.2.230.0030.01715.13
7.2.220.0070.01114.83
7.2.210.0060.00315.11
7.2.200.0000.01414.96
7.2.190.0000.01014.87
7.2.180.0000.01215.00
7.2.170.0000.01814.91
7.2.160.0090.00614.93
7.2.150.0000.01216.58
7.2.140.0090.00916.83
7.2.130.0030.00916.84
7.2.120.0050.00816.79
7.2.110.0100.00616.64
7.2.100.0040.01116.76
7.2.90.0060.00616.96
7.2.80.0070.01016.73
7.2.70.0060.00616.62
7.2.60.0050.00816.79
7.2.50.0070.00316.90
7.2.40.0090.00616.65
7.2.30.0030.01216.91
7.2.20.0000.01516.79
7.2.10.0000.01816.66
7.2.00.0080.00617.91
7.1.330.0040.01415.87
7.1.320.0060.00615.68
7.1.310.0090.00615.39
7.1.300.0090.00315.33
7.1.290.0040.00715.83
7.1.280.0000.01015.61
7.1.270.0060.00815.65
7.1.260.0070.00415.64
7.1.250.0090.00615.43
7.1.240.0040.01215.71
7.1.230.0110.00015.67
7.1.220.0030.01015.63
7.1.210.0040.01115.70
7.1.200.0060.00515.56
7.1.190.0060.00615.66
7.1.180.0070.00715.25
7.1.170.0040.01115.64
7.1.160.0100.00315.68
7.1.150.0090.00015.39
7.1.140.0040.01215.45
7.1.130.0070.00715.61
7.1.120.0060.00915.53
7.1.110.0030.00615.68
7.1.100.0000.01216.78
7.1.90.0050.00515.32
7.1.80.0150.00015.59
7.1.70.0030.00616.35
7.1.60.0050.01217.54
7.1.50.0090.00616.29
7.1.40.0090.00615.80
7.1.30.0030.00915.63
7.1.20.0040.00415.44
7.1.10.0070.01015.61
7.1.00.0080.03818.97
7.0.330.0030.01015.43
7.0.320.0000.01515.44
7.0.310.0100.00315.20
7.0.300.0070.00315.20
7.0.290.0030.01015.19
7.0.280.0000.01215.29
7.0.270.0030.01015.19
7.0.260.0110.00015.49
7.0.250.0040.00415.39
7.0.240.0030.01215.59
7.0.230.0070.00715.21
7.0.220.0030.01015.65
7.0.210.0030.00915.12
7.0.200.0050.00516.19
7.0.190.0060.00615.59
7.0.180.0060.00615.30
7.0.170.0030.00915.23
7.0.160.0070.00315.17
7.0.150.0070.00715.33
7.0.140.0030.00615.41
7.0.130.0000.01315.66
7.0.120.0060.01015.34
7.0.110.0140.00015.42
7.0.100.0050.03718.59
7.0.90.0020.04618.54
7.0.80.0050.04418.47
7.0.70.0070.03718.43
7.0.60.0050.04318.52
7.0.50.0050.04518.84
7.0.40.0070.04316.79
7.0.30.0100.04016.81
7.0.20.0080.03816.69
7.0.10.0070.04016.70
7.0.00.0090.04216.89
5.6.400.0060.01214.36
5.6.390.0060.00314.32
5.6.380.0100.00314.53
5.6.370.0070.00314.38
5.6.360.0060.00614.51
5.6.350.0000.01214.20
5.6.340.0030.00614.29
5.6.330.0090.00614.19
5.6.320.0000.01114.28
5.6.310.0030.01014.41
5.6.300.0000.01514.33
5.6.290.0040.00814.35
5.6.280.0100.01817.87
5.6.270.0070.00714.46
5.6.260.0090.00914.39
5.6.250.0050.04317.53
5.6.240.0030.04517.61
5.6.230.0050.04517.56
5.6.220.0070.04517.47
5.6.210.0070.03817.58
5.6.200.0080.04217.68
5.6.190.0090.04017.79
5.6.180.0080.04117.69
5.6.170.0020.04017.65
5.6.160.0050.04317.74
5.6.150.0030.04617.79
5.6.140.0050.04317.82
5.6.130.0030.04317.58
5.6.120.0070.04017.81
5.6.110.0030.04217.65
5.6.100.0060.04517.71
5.6.90.0050.04317.70
5.6.80.0050.04217.34
5.6.70.0050.04217.22
5.6.60.0020.04517.23
5.6.50.0030.04317.40
5.6.40.0080.03317.37
5.6.30.0070.02217.37
5.6.20.0030.03017.35
5.6.10.0050.04017.33
5.6.00.0080.04017.35
5.5.380.0070.04017.49
5.5.370.0020.04317.37
5.5.360.0060.04017.28
5.5.350.0020.03717.40
5.5.340.0050.03917.64
5.5.330.0080.04217.66
5.5.320.0030.04817.46
5.5.310.0070.04217.49
5.5.300.0050.04517.47
5.5.290.0040.04417.60
5.5.280.0020.04617.55
5.5.270.0030.03017.49
5.5.260.0030.02817.48
5.5.250.0050.04017.33
5.5.240.0050.03517.01
5.5.230.0040.04217.29
5.5.220.0040.04217.30
5.5.210.0050.04517.27
5.5.200.0080.04217.24
5.5.190.0030.04617.21
5.5.180.0030.04617.23
5.5.170.0000.01414.37
5.5.160.0100.03517.08
5.5.150.0080.03817.16
5.5.140.0070.04517.08
5.5.130.0090.04117.09
5.5.120.0030.03917.31
5.5.110.0100.03717.33
5.5.100.0070.03817.19
5.5.90.0100.03717.14
5.5.80.0020.04517.22
5.5.70.0070.02617.22
5.5.60.0050.04517.14
5.5.50.0100.03717.03
5.5.40.0070.04017.01
5.5.30.0040.03417.03
5.5.20.0050.04317.07
5.5.10.0070.04416.94
5.5.00.0070.04216.94

preferences:
43.11 ms | 401 KiB | 5 Q