3v4l.org

run code in 300+ PHP versions simultaneously
<?php // пример от Максима Иванова error_reporting( E_ERROR ); function foo(){}; // return void $arr = [1, 2, 3]; echo (false ?? "Next step !") . " | "; // true echo (NULL ?? "Next step !") . " | "; // Next step ! echo ("" ?? "Next step !") . " | "; // true echo (0 ?? "Next step !") . " | "; // 0 echo (foo() ?? "Next step !") . " | "; // Next step ! echo ($arr ?? "Next step !") . " | "; // Array echo ($arr[1] ?? "Next step !") . " | "; // 2

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.130.0060.00318.71
8.3.120.0040.01220.51
8.3.110.0090.00916.53
8.3.100.0050.00516.78
8.3.90.0000.00826.77
8.3.80.0040.00717.97
8.3.70.0130.00316.75
8.3.60.0090.00918.43
8.3.50.0090.00922.93
8.3.40.0090.01218.69
8.3.30.0070.00718.70
8.3.20.0040.00420.30
8.3.10.0040.00421.85
8.3.00.0030.00520.95
8.2.250.0030.00618.61
8.2.240.0050.00517.37
8.2.230.0060.00320.94
8.2.220.0100.00037.54
8.2.210.0070.00026.77
8.2.200.0130.00018.27
8.2.190.0100.00718.42
8.2.180.0070.01018.67
8.2.170.0070.00722.96
8.2.160.0030.01022.29
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00426.35
8.2.110.0030.00619.39
8.2.100.0040.00817.91
8.2.90.0050.00318.28
8.2.80.0040.00420.40
8.2.70.0060.00317.63
8.2.60.0060.00317.75
8.2.50.0080.00017.63
8.2.40.0030.00717.75
8.2.30.0040.00419.32
8.2.20.0070.00017.81
8.2.10.0030.00517.98
8.2.00.0000.00718.05
8.1.300.0000.00918.56
8.1.290.0030.00618.88
8.1.280.0100.00625.92
8.1.270.0040.00424.66
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0030.00623.93
8.1.230.0030.00920.93
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0080.00017.22
8.1.180.0050.00518.10
8.1.170.0000.00817.62
8.1.160.0050.00219.07
8.1.150.0070.00018.89
8.1.140.0080.00019.62
8.1.130.0030.00317.66
8.1.120.0040.00417.39
8.1.110.0080.00017.49
8.1.100.0000.00717.43
8.1.90.0000.00817.33
8.1.80.0000.00717.46
8.1.70.0040.00417.50
8.1.60.0000.00717.64
8.1.50.0080.00017.46
8.1.40.0070.00017.47
8.1.30.0080.00017.67
8.1.20.0080.00017.59
8.1.10.0000.00817.55
8.1.00.0070.00317.39
8.0.300.0080.00019.90
8.0.290.0080.00016.75
8.0.280.0050.00318.45
8.0.270.0030.00317.18
8.0.260.0060.00017.13
8.0.250.0050.00516.89
8.0.240.0040.00417.02
8.0.230.0030.00317.04
8.0.220.0040.00416.94
8.0.210.0000.00716.94
8.0.200.0000.00616.92
8.0.190.0000.00717.03
8.0.180.0040.00416.89
8.0.170.0030.00616.97
8.0.160.0000.00717.02
8.0.150.0040.00416.98
8.0.140.0040.00416.82
8.0.130.0060.00313.26
8.0.120.0030.00516.93
8.0.110.0000.00717.01
8.0.100.0000.00717.07
8.0.90.0000.00716.84
8.0.80.0030.01216.91
8.0.70.0040.00416.80
8.0.60.0040.00416.69
8.0.50.0030.00516.79
8.0.30.0040.01517.10
8.0.20.0080.01217.40
8.0.10.0070.00017.01
8.0.00.0060.01016.77
7.4.330.0000.00515.08
7.4.320.0000.00616.50
7.4.300.0030.00316.60
7.4.290.0030.00316.53
7.4.280.0040.00416.58
7.4.270.0000.00716.51
7.4.260.0060.00316.59
7.4.250.0000.00716.49
7.4.240.0040.00416.61
7.4.230.0030.00316.63
7.4.220.0100.01416.70
7.4.210.0080.00616.58
7.4.200.0000.00716.41
7.4.160.0140.00316.52
7.4.150.0100.00717.40
7.4.140.0110.00617.86
7.4.130.0070.01016.50
7.4.120.0120.00616.60
7.4.110.0120.01216.48
7.4.100.0080.00816.41
7.4.90.0110.00716.57
7.4.80.0030.01319.39
7.4.70.0040.01216.61
7.4.60.0030.01316.58
7.4.50.0110.00716.48
7.4.40.0070.01116.39
7.4.30.0100.00716.62
7.4.10.0120.00615.01
7.4.00.0090.00714.86
7.3.330.0050.00013.52
7.3.320.0030.00313.22
7.3.310.0000.00816.47
7.3.300.0040.00316.41
7.3.290.0070.00016.36
7.3.280.0090.01116.43
7.3.270.0060.01117.40
7.3.260.0130.00316.46
7.3.250.0100.01016.53
7.3.240.0070.01216.51
7.3.230.0120.00816.39
7.3.210.0100.00716.40
7.3.200.0130.00716.53
7.3.190.0150.00016.46
7.3.180.0080.00816.46
7.3.170.0070.01716.40
7.3.160.0180.00316.66
7.3.130.0030.01314.78
7.3.120.0030.01414.93
7.3.110.0090.00615.11
7.3.100.0040.01014.67
7.3.90.0100.00314.80
7.3.80.0160.00014.95
7.3.70.0080.00414.89
7.3.60.0000.00914.93
7.3.50.0150.00314.56
7.3.40.0000.00814.81
7.3.30.0120.00314.85
7.3.20.0040.01116.69
7.3.10.0030.01216.65
7.3.00.0060.01016.51
7.2.330.0070.01316.62
7.2.320.0110.00516.64
7.2.310.0070.01116.51
7.2.300.0170.00616.57
7.2.290.0050.01116.51
7.2.260.0120.00615.08
7.2.250.0040.01415.25
7.2.240.0090.00614.96
7.2.230.0060.01015.18
7.2.220.0070.00715.21
7.2.210.0040.00815.23
7.2.200.0060.00614.75
7.2.190.0090.00914.95
7.2.180.0000.01014.95
7.2.170.0070.00715.11
7.2.160.0000.00915.05
7.2.150.0090.00616.85
7.2.140.0130.00616.65
7.2.130.0060.00816.67
7.2.120.0070.01116.49
7.2.110.0050.01016.70
7.2.100.0080.00516.80
7.2.90.0050.01116.79
7.2.80.0050.01216.86
7.2.70.0090.01016.79
7.2.60.0050.01116.71
7.2.50.0110.00516.74
7.2.40.0050.01316.66
7.2.30.0050.01216.84
7.2.20.0050.00816.90
7.2.10.0080.01016.74
7.2.00.0060.01017.67
7.1.330.0040.01115.96
7.1.320.0080.00415.89
7.1.310.0030.00715.87
7.1.300.0090.00615.82
7.1.290.0060.00315.68
7.1.280.0080.00615.78
7.1.270.0080.00515.58
7.1.260.0030.01415.91
7.1.250.0070.00515.80
7.1.240.0040.01415.48
7.1.230.0070.00715.82
7.1.220.0030.01015.82
7.1.210.0070.00715.79
7.1.200.0050.00715.80
7.1.190.0090.00315.81
7.1.180.0070.00715.73
7.1.170.0130.00015.96
7.1.160.0000.01415.84
7.1.150.0070.00415.80
7.1.140.0000.01215.83
7.1.130.0070.00715.40
7.1.120.0090.00915.62
7.1.110.0030.01015.88
7.1.100.0060.00616.90
7.1.90.0070.00715.76
7.1.80.0030.01315.79
7.1.70.0030.00716.44
7.1.60.0050.01517.68
7.1.50.0050.01516.29
7.1.40.0040.01115.88
7.1.30.0030.00715.77
7.1.20.0030.00915.80
7.1.10.0040.00815.91
7.1.00.0060.04318.90
7.0.330.0000.00815.29
7.0.320.0090.00315.18
7.0.310.0000.01415.36
7.0.300.0060.00915.34
7.0.290.0120.00315.09
7.0.280.0060.00615.26
7.0.270.0080.00615.12
7.0.260.0040.00715.19
7.0.250.0030.01015.35
7.0.240.0070.00415.48
7.0.230.0030.01015.36
7.0.220.0030.00915.48
7.0.210.0130.00015.32
7.0.200.0460.00314.95
7.0.190.0090.00615.28
7.0.180.0040.00715.16
7.0.170.0030.00915.36
7.0.160.0100.00315.41
7.0.150.0030.00515.32
7.0.140.0000.01415.47
7.0.130.0090.00915.13
7.0.120.0060.00615.48
7.0.110.0060.00615.23
7.0.100.0090.00415.07
7.0.90.0070.01015.14
7.0.80.0360.04117.60
7.0.70.0230.03517.57
7.0.60.0300.04617.64
7.0.50.0350.03517.69
7.0.40.0070.04216.98
7.0.30.0030.03117.02
7.0.20.0100.03016.99
7.0.10.0030.05017.01
7.0.00.0030.05017.00
5.6.400.0090.00614.32
5.6.390.0090.00314.12
5.6.380.0030.00614.07
5.6.370.0030.00514.37
5.6.360.0040.01214.39
5.6.350.0040.00714.10
5.6.340.0090.00614.10
5.6.330.0060.00914.11
5.6.320.0030.00914.25
5.6.310.0060.00614.32
5.6.300.0070.01014.32
5.6.290.0110.00413.96
5.6.280.0050.03817.40
5.6.270.0070.00314.15
5.6.260.0110.00314.36
5.6.250.0000.01714.16
5.6.240.0070.01113.96
5.6.230.0020.04217.36
5.6.220.0100.03517.45
5.6.210.0050.04417.41
5.6.200.0050.04417.58
5.6.190.0070.04017.61
5.6.180.0070.04017.78
5.6.170.0060.05017.64
5.6.160.0120.03217.76
5.6.150.0070.04217.62
5.6.140.0080.03717.56
5.6.130.0020.04817.63
5.6.120.0070.03717.66
5.6.110.0100.02717.68
5.6.100.0030.04917.59
5.6.90.0120.02917.48
5.6.80.0040.04917.25
5.6.70.0050.03217.20
5.6.60.0020.05017.34
5.6.50.0080.04517.18
5.6.40.0060.03617.23
5.6.30.0070.03117.21
5.6.20.0080.04217.21
5.6.10.0040.04517.24
5.6.00.0050.04217.23
5.5.380.0030.01314.36
5.5.370.0100.04217.22
5.5.360.0050.03517.27
5.5.350.0050.04717.39
5.5.340.0080.04617.31
5.5.330.0110.04017.43
5.5.320.0120.04017.29
5.5.310.0070.04217.55
5.5.300.0070.03417.46
5.5.290.0030.04517.46
5.5.280.0050.04517.38
5.5.270.0070.04017.50
5.5.260.0080.04017.49
5.5.250.0080.03717.39
5.5.240.0030.04517.10
5.5.230.0150.02517.25
5.5.220.0030.04717.10
5.5.210.0060.04317.15
5.5.200.0120.04217.10
5.5.190.0060.04417.08
5.5.180.0120.03717.12
5.5.170.0030.01013.89
5.5.160.0020.04817.16
5.5.150.0050.02617.02
5.5.140.0070.04317.05
5.5.130.0070.04317.02
5.5.120.0110.04017.20
5.5.110.0080.04217.16
5.5.100.0050.04116.99
5.5.90.0140.03416.98
5.5.80.0080.04217.08
5.5.70.0100.03517.02
5.5.60.0070.04317.07
5.5.50.0120.03217.03
5.5.40.0110.03717.00
5.5.30.0130.03817.02
5.5.20.0080.04217.15
5.5.10.0100.03816.97
5.5.00.0080.04017.05
5.4.450.0070.06719.38
5.4.440.0130.07719.55
5.4.430.0100.07719.17
5.4.420.0030.07019.41
5.4.410.0100.04719.32
5.4.400.0130.05018.91
5.4.390.0030.05318.91
5.4.380.0170.06719.05
5.4.370.0030.07318.92
5.4.360.0000.08319.21
5.4.350.0100.07019.13
5.4.340.0100.07718.86
5.4.320.0130.07018.85
5.4.310.0000.05719.16
5.4.300.0070.07719.16
5.4.290.0170.06718.89
5.4.280.0000.08318.94
5.4.270.0100.07018.90
5.4.260.0130.06719.23
5.4.250.0030.07319.17
5.4.240.0070.07718.84
5.4.230.0130.06719.08
5.4.220.0130.05719.22
5.4.210.0070.08018.84
5.4.200.0030.05719.12
5.4.190.0030.07018.86
5.4.180.0070.07719.02
5.4.170.0030.08319.20
5.4.160.0070.07718.84
5.4.150.0070.07319.01
5.4.140.0030.08016.41
5.4.130.0170.06016.52
5.4.120.0070.07316.41
5.4.110.0070.07716.47
5.4.100.0070.08016.36
5.4.90.0100.07016.43
5.4.80.0070.07316.41
5.4.70.0100.07316.38
5.4.60.0100.06716.37
5.4.50.0070.06716.49
5.4.40.0070.07316.48
5.4.30.0070.06716.31
5.4.20.0100.07316.48
5.4.10.0030.05716.39
5.4.00.0130.06315.86
5.3.290.0030.07014.59
5.3.280.0100.07714.54
5.3.270.0100.08014.59
5.3.260.0100.07314.70
5.3.250.0000.08014.55
5.3.240.0030.08014.53
5.3.230.0070.07714.59
5.3.220.0130.06714.58
5.3.210.0030.07714.52
5.3.200.0000.07314.68
5.3.190.0030.07714.51
5.3.180.0030.08014.65
5.3.170.0100.07714.62
5.3.160.0100.07714.48
5.3.150.0030.08314.57
5.3.140.0130.06714.65
5.3.130.0200.07314.66
5.3.120.0100.07014.57
5.3.110.0030.07714.47
5.3.100.0100.06314.13
5.3.90.0100.07314.03
5.3.80.0030.07714.04
5.3.70.0070.07313.91
5.3.60.0070.05314.06
5.3.50.0100.07013.84
5.3.40.0030.07314.02
5.3.30.0000.06713.83
5.3.20.0070.07013.74
5.3.10.0070.07013.55
5.3.00.0070.07313.52
5.2.170.0000.04311.63
5.2.160.0030.06011.63
5.2.150.0100.03711.63
5.2.140.0030.06311.63
5.2.130.0070.06011.63
5.2.120.0070.06011.63
5.2.110.0070.06011.63
5.2.100.0030.06011.63
5.2.90.0070.05711.63
5.2.80.0030.06011.63
5.2.70.0030.05711.63
5.2.60.0070.05711.63
5.2.50.0070.06711.63
5.2.40.0070.06311.63
5.2.30.0100.05711.63
5.2.20.0070.06311.63
5.2.10.0070.05711.63
5.2.00.0070.05711.63
5.1.60.0030.05711.63
5.1.50.0030.04011.63
5.1.40.0070.05311.63
5.1.30.0000.05711.63
5.1.20.0100.04711.63
5.1.10.0030.05311.63
5.1.00.0030.03711.63
5.0.50.0100.03711.63
5.0.40.0030.04011.63
5.0.30.0070.06011.63
5.0.20.0070.04011.63
5.0.10.0070.04311.63
5.0.00.0000.06311.63
4.4.90.0030.03711.63
4.4.80.0000.03011.63
4.4.70.0070.03311.63
4.4.60.0030.03011.63
4.4.50.0030.03711.63
4.4.40.0000.05311.63
4.4.30.0130.02711.63
4.4.20.0030.03711.63
4.4.10.0100.03011.63
4.4.00.0030.05011.63
4.3.110.0000.03711.63
4.3.100.0030.04011.63
4.3.90.0000.03011.63
4.3.80.0070.04011.63
4.3.70.0030.03311.63
4.3.60.0030.03011.63
4.3.50.0000.02711.63
4.3.40.0130.04311.63
4.3.30.0000.03011.63
4.3.20.0000.04011.63
4.3.10.0000.03711.63
4.3.00.0000.03711.63

preferences:
76.94 ms | 403 KiB | 5 Q