3v4l.org

run code in 300+ PHP versions simultaneously
<?php xhprof_enable(); $foo = strlen("foo bar"); function test_func() { $i = 0; while ($i < 100000000) { $i += 1; } } test_func(); $xhprof_data = xhprof_disable(); print_r($xhprof_data); ?>

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.0070.01016.50
8.3.50.0070.01122.93
8.3.40.0040.01218.84
8.3.30.0170.00318.91
8.3.20.0080.00020.21
8.3.10.0080.00020.70
8.3.00.0040.00419.03
8.2.180.0140.00716.38
8.2.170.0110.00722.96
8.2.160.0070.00722.11
8.2.150.0090.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.49
8.2.110.0050.00520.54
8.2.100.0000.01217.72
8.2.90.0000.00919.02
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0040.00417.91
8.2.50.0050.00318.10
8.2.40.0060.00318.22
8.2.30.0000.00721.14
8.2.20.0050.00317.68
8.2.10.0040.00417.96
8.2.00.0080.00017.61
8.1.280.0170.00325.92
8.1.270.0050.00322.04
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0110.00019.01
8.1.230.0110.00320.82
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0060.00318.53
8.1.160.0040.00418.77
8.1.150.0000.00718.66
8.1.140.0000.00717.22
8.1.130.0030.00317.77
8.1.120.0050.00317.38
8.1.110.0040.00417.34
8.1.100.0030.00317.28
8.1.90.0000.00717.23
8.1.80.0000.00817.24
8.1.70.0030.00317.20
8.1.60.0000.00717.43
8.1.50.0000.00817.49
8.1.40.0050.00217.32
8.1.30.0040.00417.47
8.1.20.0030.00517.43
8.1.10.0080.00017.52
8.1.00.0000.00717.49
8.0.300.0000.00719.60
8.0.290.0040.00416.75
8.0.280.0000.00818.36
8.0.270.0000.00717.19
8.0.260.0030.00317.11
8.0.250.0000.00716.93
8.0.240.0030.00316.82
8.0.230.0100.00016.99
8.0.220.0040.00416.95
8.0.210.0000.00716.88
8.0.200.0000.00716.95
8.0.190.0070.00016.98
8.0.180.0000.00716.86
8.0.170.0030.00516.83
8.0.160.0070.00016.94
8.0.150.0000.00816.79
8.0.140.0050.00316.77
8.0.130.0000.00613.32
8.0.120.0080.00016.84
8.0.110.0040.00416.86
8.0.100.0000.00716.89
8.0.90.0000.00816.79
8.0.80.0090.01216.84
8.0.70.0040.00416.70
8.0.60.0000.00816.83
8.0.50.0040.00416.68
8.0.30.0120.00917.04
8.0.20.0090.01117.40
8.0.10.0080.00016.88
8.0.00.0120.00916.72
7.4.330.0070.00015.02
7.4.320.0000.00716.39
7.4.300.0030.00316.44
7.4.290.0000.00616.50
7.4.280.0000.00816.41
7.4.270.0040.00416.52
7.4.260.0030.00316.51
7.4.250.0040.00416.45
7.4.240.0030.00316.50
7.4.230.0040.00416.54
7.4.220.0090.00916.57
7.4.210.0120.00316.54
7.4.200.0050.00216.60
7.4.160.0100.00716.45
7.4.150.0030.01417.40
7.4.140.0130.00817.86
7.4.130.0060.01116.40
7.4.120.0100.00816.56
7.4.110.0060.01316.47
7.4.100.0000.01816.46
7.4.90.0170.00016.53
7.4.80.0070.01016.49
7.4.70.0140.00716.57
7.4.60.0120.00916.47
7.4.50.0050.00016.53
7.4.40.0100.01316.36
7.4.30.0140.00316.61
7.4.00.0040.00814.78
7.3.330.0060.00013.14
7.3.320.0000.00513.13
7.3.310.0000.00716.34
7.3.300.0000.00716.25
7.3.290.0040.00916.24
7.3.280.0080.01016.28
7.3.270.0130.00417.40
7.3.260.0090.00916.31
7.3.250.0110.00516.28
7.3.240.0130.01016.45
7.3.230.0130.01016.39
7.3.210.0130.00716.32
7.3.200.0140.01119.39
7.3.190.0110.01116.42
7.3.180.0070.01016.44
7.3.170.0070.00716.50
7.3.160.0090.00616.46
7.2.330.0060.01116.54
7.2.320.0100.00716.29
7.2.310.0100.00716.61
7.2.300.0100.00616.54
7.2.290.0060.01516.63
7.2.60.0070.00716.45
7.2.00.0090.00319.16
7.1.200.0030.00915.43
7.1.100.0000.01117.94
7.1.70.0000.01316.81
7.1.60.0100.01319.34
7.1.50.0180.00416.87
7.1.00.0070.07022.43
7.0.200.0050.00316.57
7.0.140.0100.06721.97
7.0.60.0000.08320.00
7.0.50.0030.07717.95
7.0.40.0100.08720.09
7.0.30.0430.05020.11
7.0.20.0300.07720.07
7.0.10.0070.05020.26
7.0.00.0030.09320.23
5.6.280.0030.07021.10
5.6.210.0000.04720.61
5.6.200.0070.04718.18
5.6.190.0070.04020.55
5.6.180.0130.05320.46
5.6.170.0070.05020.55
5.6.160.0030.05320.56
5.6.150.0000.04718.18
5.6.140.0100.04318.18
5.6.130.0000.06718.15
5.6.120.0030.07321.04
5.6.110.0030.09321.12
5.6.100.0100.08021.13
5.6.90.0130.07021.09
5.6.80.0030.04020.43
5.6.70.0230.06720.40
5.5.350.0130.08720.39
5.5.340.0000.06717.98
5.5.330.0030.04320.27
5.5.320.0170.08320.48
5.5.310.0230.07320.35
5.5.300.0100.04318.01
5.5.290.0030.08317.97
5.5.280.0000.05020.69
5.5.270.0170.07320.77
5.5.260.0070.04020.89
5.5.250.0100.03720.61
5.5.240.0100.05020.07
5.4.450.0330.04319.16
5.4.440.0070.07319.46
5.4.430.0170.03719.27
5.4.420.0200.04719.30
5.4.410.0170.04019.04
5.4.400.0200.06318.96
5.4.390.4270.04019.25
5.4.380.0370.06319.19
5.4.370.0270.06319.22
5.4.360.0470.04719.00
5.4.350.0070.03712.02
5.4.340.0060.03512.02
5.4.320.0050.04012.50
5.4.310.0070.03912.50
5.4.300.0060.03712.51
5.4.290.0030.04012.50
5.4.280.0120.03712.40
5.4.270.0110.03812.40
5.4.260.0040.04012.40
5.4.250.0080.04112.40
5.4.240.0050.04012.40
5.4.230.0040.04412.39
5.4.220.0090.03912.39
5.4.210.0100.04112.39
5.4.200.0070.03912.39
5.4.190.0090.03512.39
5.4.180.0130.04912.39
5.4.170.0040.04112.39
5.4.160.0050.04112.39
5.4.150.0070.04012.38
5.4.140.0050.04212.07
5.4.130.0070.03612.06
5.4.120.0030.05312.02
5.4.110.0110.05212.01
5.4.100.0100.04212.02
5.4.90.0130.05412.02
5.4.80.0060.04912.01
5.4.70.0100.04212.00
5.4.60.0110.03512.01
5.4.50.0060.03712.01
5.4.40.0100.03412.00
5.4.30.0100.04111.99
5.4.20.0060.04412.00
5.4.10.0060.03912.00
5.4.00.0060.04411.49

preferences:
42.97 ms | 401 KiB | 5 Q