3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=1); function tick_handler() { echo "tick_handler() called\n"; } $a = 1; tick_handler(); if ($a > 0) { $a += 2; tick_handler(); print($a); tick_handler(); } tick_handler(); ?>

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.70.0040.01116.75
8.3.60.0140.00016.63
8.3.50.0090.00617.48
8.3.40.0070.00718.73
8.3.30.0070.01118.51
8.3.20.0040.00418.80
8.3.10.0000.00818.79
8.3.00.0000.00819.38
8.2.180.0040.01116.63
8.2.170.0110.00722.96
8.2.160.0130.00720.27
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00318.71
8.2.110.0060.00321.02
8.2.100.0070.00417.78
8.2.90.0090.00019.51
8.2.80.0040.00419.21
8.2.70.0000.00817.59
8.2.60.0040.00418.03
8.2.50.0080.00018.07
8.2.40.0000.00918.28
8.2.30.0000.00718.01
8.2.20.0030.00617.71
8.2.10.0000.00817.59
8.2.00.0040.00417.68
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00422.65
8.1.230.0060.00620.93
8.1.220.0080.00017.76
8.1.210.0040.00418.84
8.1.200.0060.00316.97
8.1.190.0030.00517.40
8.1.180.0060.00318.10
8.1.170.0060.00318.82
8.1.160.0060.00318.79
8.1.150.0030.00618.57
8.1.140.0000.00717.30
8.1.130.0000.00717.82
8.1.120.0000.00717.41
8.1.110.0040.00417.27
8.1.100.0080.00017.39
8.1.90.0040.00417.43
8.1.80.0040.00417.29
8.1.70.0000.00717.28
8.1.60.0040.00717.57
8.1.50.0000.00717.45
8.1.40.0040.00417.52
8.1.30.0030.00517.55
8.1.20.0040.00417.58
8.1.10.0000.00817.45
8.1.00.0040.00417.31
8.0.300.0040.00419.89
8.0.290.0000.00816.75
8.0.280.0040.00418.36
8.0.270.0030.00317.17
8.0.260.0000.00616.78
8.0.250.0000.00716.95
8.0.240.0040.00416.95
8.0.230.0030.00316.78
8.0.220.0070.00016.84
8.0.210.0070.00016.86
8.0.200.0000.00716.82
8.0.190.0030.00516.82
8.0.180.0040.00416.85
8.0.170.0060.00316.87
8.0.160.0030.00416.84
8.0.150.0080.00016.81
8.0.140.0060.00616.67
8.0.130.0030.00313.23
8.0.120.0030.00516.68
8.0.110.0030.00616.83
8.0.100.0000.00716.70
8.0.90.0040.00416.71
8.0.80.0120.00316.86
8.0.70.0050.00316.86
8.0.60.0030.00316.86
8.0.50.0040.00416.86
8.0.30.0060.01217.22
8.0.20.0070.01217.04
8.0.10.0000.00716.97
8.0.00.0170.00716.90
7.4.330.0020.00212.88
7.4.320.0060.00016.57
7.4.300.0030.00316.57
7.4.290.0040.00716.51
7.4.280.0030.00616.49
7.4.270.0030.00616.40
7.4.260.0030.00313.31
7.4.250.0000.00816.41
7.4.240.0000.00716.58
7.4.230.0070.00016.67
7.4.220.0080.01216.59
7.4.210.0070.00916.60
7.4.200.0060.00016.58
7.4.190.0000.00616.55
7.4.160.0080.00616.63
7.4.150.0170.00016.60
7.4.140.0110.00516.59
7.4.130.0050.01316.46
7.4.120.0120.00516.42
7.4.110.0070.01016.26
7.4.100.0130.00316.52
7.4.90.0090.00916.42
7.4.80.0160.00019.39
7.4.70.0070.01716.35
7.4.60.0100.01016.48
7.4.50.0040.00416.44
7.4.40.0030.01516.63
7.4.30.0050.01316.61
7.4.00.0060.01015.14
7.3.330.0030.00313.16
7.3.320.0000.00613.09
7.3.310.0030.00316.46
7.3.300.0000.00716.30
7.3.290.0060.00916.29
7.3.280.0110.00616.30
7.3.270.0000.01616.49
7.3.260.0090.00916.46
7.3.250.0110.00716.41
7.3.240.0090.01216.57
7.3.230.0130.00316.43
7.3.210.0080.00816.29
7.3.200.0230.00016.63
7.3.190.0060.01216.27
7.3.180.0130.00316.55
7.3.170.0070.01116.45
7.3.160.0100.01016.48
7.3.120.0040.01114.82
7.2.330.0070.01116.73
7.2.320.0100.00716.64
7.2.310.0150.00316.72
7.2.300.0170.00016.67
7.2.290.0030.01316.79
7.2.60.0000.01116.98
7.1.200.0090.00615.66
7.1.70.0040.00816.66
7.1.60.0060.01019.40
7.1.50.0150.00716.92
7.1.00.0070.05322.43
7.0.200.0220.00714.78
7.0.140.0070.06721.95
7.0.120.0000.07322.00
7.0.60.0170.08019.92
7.0.50.0100.04717.81
7.0.40.0030.09020.19
7.0.30.0270.08320.10
7.0.20.0230.04020.07
7.0.10.0070.09020.20
7.0.00.0100.03720.07
5.6.280.0030.07320.78
5.6.210.0030.04020.52
5.6.200.0070.07718.12
5.6.190.0030.08320.63
5.6.180.0270.05720.77
5.6.170.0230.03320.58
5.6.160.0100.05320.61
5.6.150.0100.06718.12
5.6.140.0070.05318.25
5.6.130.0100.05718.18
5.6.120.0070.05321.12
5.6.110.0170.07320.96
5.6.100.0070.07721.11
5.6.90.0130.05720.93
5.6.80.0030.04320.41
5.5.350.0130.08720.40
5.5.340.0130.03718.05
5.5.330.0030.05320.40
5.5.320.0300.04720.30
5.5.310.0270.04020.37
5.5.300.0070.03718.01
5.5.290.0030.04717.98
5.5.280.0000.04320.80
5.5.270.0030.05720.89
5.5.260.0030.08020.64
5.5.250.0030.07720.57
5.5.240.0100.07020.19
5.4.450.3070.04719.55
5.4.440.3070.03719.47
5.4.430.3070.04319.56
5.4.420.2870.04019.46
5.4.410.2800.04019.52
5.4.400.2700.03019.07
5.4.390.2900.03018.99
5.4.380.2830.03719.23
5.4.370.2900.03719.15
5.4.360.2870.03318.87
5.4.350.2900.03719.23
5.4.340.3100.04019.31
5.4.320.2700.04318.98
5.4.310.2700.04019.08
5.4.300.3200.03719.22
5.4.290.3200.04319.23
5.4.280.3430.04019.20
5.4.270.2930.03319.22
5.4.260.3030.04318.98
5.4.250.3330.03318.87
5.4.240.2830.04318.86
5.4.230.3400.04019.08
5.4.220.3370.04018.94
5.4.210.3000.03719.21
5.4.200.3100.03719.06
5.4.190.3200.04318.93
5.4.180.3070.03719.15
5.4.170.2830.04019.21
5.4.160.2630.03718.96
5.4.150.3030.03719.20
5.4.140.3000.03316.41
5.4.130.2730.03716.33
5.4.120.3200.03016.37
5.4.110.3130.03316.58
5.4.100.3130.03716.54
5.4.90.3030.04316.60
5.4.80.4330.03016.39
5.4.70.3500.04016.25
5.4.60.3270.03316.52
5.4.50.3530.04016.43
5.4.40.2770.03716.38
5.4.30.2930.03716.34
5.4.20.2830.03716.42
5.4.10.3130.03716.43
5.4.00.3530.03315.79
5.3.290.2700.04014.64
5.3.280.2930.04014.56
5.3.270.3200.05714.59
5.3.260.3030.04014.52
5.3.250.2900.04014.52
5.3.240.3070.03314.63
5.3.230.2970.04714.53
5.3.220.3200.03714.68
5.3.210.3100.03714.49
5.3.200.2900.04314.62
5.3.190.3000.03314.57
5.3.180.3070.04014.47
5.3.170.3400.04014.57
5.3.160.3430.03714.52
5.3.150.3230.04314.48
5.3.140.3000.04014.53
5.3.130.2830.04014.44
5.3.120.2730.04014.47
5.3.110.2700.04014.52
5.3.100.3530.03013.95
5.3.90.3370.04013.99
5.3.80.3430.03313.92
5.3.70.3170.03713.92
5.3.60.0070.03313.90
5.3.50.0000.04014.02
5.3.40.3600.04014.02
5.3.30.3630.04013.82
5.3.20.3430.03313.70
5.3.10.3170.03313.56
5.3.00.2770.03313.65
5.2.170.0070.02711.05
5.2.160.0600.03011.10
5.2.150.3030.03011.21
5.2.140.2530.02311.07
5.2.130.2770.03311.21
5.2.120.2770.02311.25
5.2.110.2530.02711.10
5.2.100.2500.02711.18
5.2.90.2200.03311.00
5.2.80.2900.03311.10
5.2.70.3100.03011.14
5.2.60.3100.03311.26
5.2.50.3070.02711.10
5.2.40.2400.02311.07
5.2.30.2130.03011.04
5.2.20.2200.02710.87
5.2.10.2370.03010.77
5.2.00.2200.03010.68
5.1.60.2100.0309.92
5.1.50.2330.0139.97
5.1.40.0000.03310.07
5.1.30.0070.02310.25
5.1.20.0000.02710.39
5.1.10.0070.05310.12
5.1.00.1170.03010.05
5.0.50.1470.0239.73
5.0.40.1200.0179.73
5.0.30.1200.0339.73
5.0.20.1170.0239.73
5.0.10.1270.0239.73
5.0.00.1430.0409.73
4.4.90.1200.0139.73
4.4.80.1170.0139.73
4.4.70.1100.0109.73
4.4.60.1070.0139.73
4.4.50.1170.0139.73
4.4.40.1130.0209.73
4.4.30.0370.0239.73
4.4.20.0000.0179.73
4.4.10.1470.0209.73
4.4.00.1500.0279.73
4.3.110.1470.0179.73
4.3.100.1170.0139.73
4.3.90.1170.0179.73
4.3.80.1200.0209.73
4.3.70.1400.0209.73
4.3.60.1430.0179.73
4.3.50.1130.0179.73
4.3.40.1430.0279.73
4.3.30.0630.0179.73
4.3.20.0630.0139.73
4.3.10.0600.0179.73
4.3.00.0600.0179.73

preferences:
43.05 ms | 401 KiB | 5 Q