3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=1); // Функция, исполняемая при каждом тике function tick_handler() { echo "tick_handler() выполнено\n"; } register_tick_function('tick_handler'); $a = 1; if ($a > 0) { $a += 2; print($a); } ?>

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.0120.00918.43
8.3.60.0100.00718.30
8.3.50.0070.01121.88
8.3.40.0130.01018.83
8.3.30.0070.00718.56
8.3.20.0080.00020.04
8.3.10.0040.00420.43
8.3.00.0000.00720.95
8.2.190.0040.01116.63
8.2.180.0140.00716.35
8.2.170.0160.00722.96
8.2.160.0150.00420.43
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00521.14
8.2.110.0070.00320.97
8.2.100.0040.00819.64
8.2.90.0090.00019.11
8.2.80.0060.00317.97
8.2.70.0090.00017.75
8.2.60.0060.00318.04
8.2.50.0040.00418.07
8.2.40.0090.00018.22
8.2.30.0030.00618.05
8.2.20.0020.00517.64
8.2.10.0000.00818.19
8.2.00.0040.00418.14
8.1.280.0140.00325.92
8.1.270.0040.00423.83
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00320.96
8.1.230.0060.00618.97
8.1.220.0080.00017.79
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0040.00418.53
8.1.160.0000.00718.82
8.1.150.0030.00618.86
8.1.140.0040.00419.34
8.1.130.0070.00017.54
8.1.120.0040.00417.39
8.1.110.0040.00417.45
8.1.100.0000.00717.41
8.1.90.0000.00717.29
8.1.80.0000.00717.42
8.1.70.0000.00717.37
8.1.60.0050.00317.46
8.1.50.0050.00317.39
8.1.40.0090.00017.50
8.1.30.0060.00317.68
8.1.20.0000.00717.46
8.1.10.0050.00317.48
8.1.00.0070.00017.43
8.0.300.0040.00418.77
8.0.290.0110.00016.58
8.0.280.0000.00718.45
8.0.270.0030.00317.20
8.0.260.0030.00317.17
8.0.250.0000.00716.98
8.0.240.0050.00316.91
8.0.230.0030.00316.84
8.0.220.0030.00316.88
8.0.210.0000.00716.77
8.0.200.0030.00316.89
8.0.190.0030.00616.83
8.0.180.0040.00416.85
8.0.170.0000.00716.83
8.0.160.0000.00716.86
8.0.150.0030.00516.77
8.0.140.0030.00616.75
8.0.130.0030.00313.28
8.0.120.0040.00416.82
8.0.110.0050.00316.73
8.0.100.0080.00016.87
8.0.90.0090.00016.86
8.0.80.0100.00716.70
8.0.70.0070.00016.80
8.0.60.0040.00416.67
8.0.50.0040.00416.73
8.0.30.0080.01016.94
8.0.20.0080.01117.40
8.0.10.0040.00417.00
8.0.00.0100.00916.83
7.4.330.0050.00016.82
7.4.320.0030.00316.43
7.4.300.0060.00016.44
7.4.290.0030.00516.43
7.4.280.0040.00316.33
7.4.270.0070.00016.54
7.4.260.0000.00716.52
7.4.250.0040.00416.38
7.4.240.0030.00316.41
7.4.230.0030.00316.41
7.4.220.0140.00416.45
7.4.210.0080.01216.37
7.4.200.0070.00016.41
7.4.160.0060.00916.52
7.4.150.0100.00717.40
7.4.140.0090.01117.86
7.4.130.0130.00516.48
7.4.120.0100.00616.44
7.4.110.0120.00416.57
7.4.100.0110.01016.29
7.4.90.0060.01216.31
7.4.80.0100.00719.39
7.4.70.0120.00616.49
7.4.60.0100.00716.34
7.4.50.0100.00316.48
7.4.40.0100.00716.44
7.4.30.0060.00916.33
7.4.00.0050.00814.90
7.3.330.0000.00513.16
7.3.320.0050.00013.23
7.3.310.0000.00716.23
7.3.300.0000.00716.06
7.3.290.0100.00916.26
7.3.280.0110.00616.23
7.3.270.0060.01317.40
7.3.260.0160.00016.29
7.3.250.0110.00616.38
7.3.240.0080.01116.46
7.3.230.0130.00316.39
7.3.210.0140.00316.21
7.3.200.0130.00519.39
7.3.190.0120.00216.38
7.3.180.0060.00916.37
7.3.170.0060.01016.51
7.3.160.0130.00316.30
7.3.120.0030.01414.80
7.3.110.0090.00914.61
7.3.100.0040.00714.77
7.3.90.0090.00914.87
7.3.80.0040.00714.43
7.3.70.0000.01314.80
7.3.60.0090.00014.80
7.3.50.0050.00514.73
7.3.40.0030.00714.66
7.3.30.0030.01014.68
7.3.20.0070.00716.69
7.3.10.0060.00616.31
7.3.00.0060.00916.50
7.2.330.0120.00316.30
7.2.320.0030.01716.71
7.2.310.0140.00616.59
7.2.300.0180.00016.62
7.2.290.0060.00916.67
7.2.250.0030.01014.80
7.2.240.0060.01315.13
7.2.230.0100.00714.91
7.2.220.0120.00914.59
7.2.210.0060.00914.82
7.2.200.0000.01614.92
7.2.190.0030.00714.77
7.2.180.0090.00314.97
7.2.170.0000.00915.07
7.2.130.0040.01116.67
7.2.120.0040.00916.73
7.2.110.0020.01216.77
7.2.100.0060.00616.76
7.2.90.0090.00716.70
7.2.80.0020.01116.94
7.2.70.0080.00716.81
7.2.60.0060.00916.65
7.2.50.0070.00616.72
7.2.40.0060.00816.85
7.2.30.0080.00716.85
7.2.20.0050.00716.88
7.2.10.0100.00716.72
7.2.00.0070.00717.63
7.1.330.0100.00315.80
7.1.320.0060.00315.63
7.1.310.0100.00315.66
7.1.300.0030.00615.74
7.1.290.0040.00815.75
7.1.280.0000.01215.69
7.1.270.0060.00615.62
7.1.260.0090.00315.78
7.1.250.0030.00915.55
7.1.240.0030.01015.62
7.1.230.0070.00715.76
7.1.220.0000.01115.68
7.1.210.0090.00615.49
7.1.200.0050.00515.70
7.1.190.0000.01415.60
7.1.180.0030.01015.66
7.1.170.0060.00615.61
7.1.160.0100.00315.64
7.1.150.0040.00715.80
7.1.140.0000.00915.64
7.1.130.0060.00815.46
7.1.120.0030.00715.68
7.1.110.0000.01115.45
7.1.100.0030.01016.90
7.1.90.0090.00315.96
7.1.80.0070.00715.61
7.1.70.0070.00216.54
7.1.60.0030.01417.54
7.1.50.0060.00716.44
7.1.40.0090.00615.82
7.1.30.0030.01015.93
7.1.20.0120.00315.63
7.1.10.0100.00315.91
7.1.00.0040.04419.04
7.0.330.0030.00715.07
7.0.320.0060.00315.22
7.0.310.0030.01015.45
7.0.300.0110.00415.27
7.0.290.0060.00615.14
7.0.280.0060.00315.38
7.0.270.0000.00815.06
7.0.260.0070.00715.63
7.0.250.0100.00615.50
7.0.240.0030.00715.58
7.0.230.0030.00815.56
7.0.220.0070.00715.49
7.0.210.0070.00715.28
7.0.200.0060.00616.20
7.0.190.0040.00715.29
7.0.180.0050.00515.34
7.0.170.0000.01115.27
7.0.160.0100.00315.50
7.0.150.0060.00615.46
7.0.140.0000.01315.12
7.0.130.0030.00615.23
7.0.120.0050.00815.40
7.0.110.0000.01615.50
7.0.100.0030.00915.29
7.0.90.0040.01115.33
7.0.80.0000.01515.32
7.0.70.0110.00415.34
7.0.60.0100.02517.72
7.0.50.0070.03716.63
7.0.40.0080.04516.87
7.0.30.0300.03316.91
7.0.20.0120.03216.64
7.0.10.0070.05016.72
7.0.00.0050.03416.71
5.6.380.0100.00614.07
5.6.370.0090.00014.56
5.6.360.0080.00014.30
5.6.350.0060.01014.26
5.6.340.0030.01014.68
5.6.330.0030.01014.14
5.6.320.0030.01014.44
5.6.310.0030.01014.46
5.6.300.0100.00014.38
5.6.290.0040.01114.23
5.6.280.0030.04217.81
5.6.270.0120.00014.20
5.6.260.0030.00614.26
5.6.250.0040.00714.76
5.6.240.0070.01114.39
5.6.230.0000.01314.52
5.6.220.0050.00514.41
5.6.210.0020.02617.44
5.6.200.0010.02616.43
5.6.190.0070.03917.41
5.6.180.0150.04117.37
5.6.170.0130.04717.45
5.6.160.0080.03817.32
5.6.150.0080.02716.45
5.6.140.0080.04016.19
5.6.130.0060.04516.20
5.6.120.0030.03417.52
5.6.110.0080.03117.65
5.6.100.0020.04617.59
5.6.90.0080.02817.76
5.6.80.0030.04317.21
5.6.70.0050.00314.34
5.6.60.0030.01014.26
5.6.50.0080.00014.16
5.6.40.0030.01014.30
5.6.30.0030.00914.50
5.6.20.0000.01114.21
5.6.10.0030.00714.51
5.6.00.0070.00714.45
5.5.380.0030.00311.18
5.5.370.0030.00611.21
5.5.360.0070.00411.30
5.5.350.2000.02315.85
5.5.340.0070.03514.56
5.5.330.0080.04015.82
5.5.320.0230.02215.92
5.5.310.0160.02915.73
5.5.300.0030.02214.62
5.5.290.0050.04514.65
5.5.280.0050.04215.93
5.5.270.0060.04116.12
5.5.260.0080.03815.98
5.5.250.0070.04516.00
5.5.240.0150.03515.66
5.5.230.0110.00011.26
5.5.220.0030.01011.18
5.5.210.0060.00611.18
5.5.200.0070.00411.28
5.5.190.0030.00611.18
5.5.180.0000.00811.18
5.5.170.0050.00511.27
5.5.160.0090.00311.18
5.5.150.0050.00011.18
5.5.140.0030.00711.18
5.5.130.0040.00411.18
5.5.120.0030.00311.18
5.5.110.0050.00311.18
5.5.100.0060.00611.24
5.5.90.0060.00011.18
5.5.80.0110.00011.18
5.5.70.0040.00811.39
5.5.60.0040.00411.25
5.5.50.0040.00811.18
5.5.40.0110.00011.18
5.5.30.0000.00611.29
5.5.20.0060.00311.31
5.5.10.0030.00711.26
5.5.00.0030.00711.18

preferences:
30.92 ms | 401 KiB | 5 Q