3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = null; print('language-prof-' . $foo ?: 'language'); print("\n"); $foo = 'foo'; print('language-prof-' . $foo ?: 'language'); print("\n"); $foo = null; print('language-prof-' . ($foo ?: 'language')); print("\n");

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.40.0100.01018.74
8.3.30.0070.00718.95
8.3.20.0050.00220.20
8.3.10.0080.00023.69
8.3.00.0040.00419.00
8.2.170.0090.00622.96
8.2.160.0030.01020.38
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00522.11
8.2.110.0090.00022.30
8.2.100.0070.00417.91
8.2.90.0080.00019.02
8.2.80.0000.00818.05
8.2.70.0040.00917.50
8.2.60.0000.00818.03
8.2.50.0040.00418.07
8.2.40.0090.00020.01
8.2.30.0050.00318.05
8.2.20.0040.00417.72
8.2.10.0090.00018.11
8.2.00.0000.00917.59
8.1.270.0040.00423.96
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0080.00023.79
8.1.230.0000.01119.02
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0040.00417.64
8.1.180.0060.00318.10
8.1.170.0040.00418.33
8.1.160.0070.00021.96
8.1.150.0000.00818.63
8.1.140.0030.00617.49
8.1.130.0070.00017.77
8.1.120.0000.00717.35
8.1.110.0030.00617.44
8.1.100.0070.00317.43
8.1.90.0000.00717.45
8.1.80.0040.00417.44
8.1.70.0070.00017.38
8.1.60.0040.00417.46
8.1.50.0090.00017.53
8.1.40.0040.00417.56
8.1.30.0040.00417.57
8.1.20.0050.00217.59
8.1.10.0000.00717.43
8.1.00.0050.00317.29
8.0.300.0000.00720.75
8.0.290.0070.00017.18
8.0.280.0020.00518.48
8.0.270.0040.00417.15
8.0.260.0000.00617.28
8.0.250.0050.00516.97
8.0.240.0030.00616.83
8.0.230.0000.00716.96
8.0.220.0070.00016.93
8.0.210.0000.00716.88
8.0.200.0000.00716.95
8.0.190.0040.00416.86
8.0.180.0040.00416.98
8.0.170.0080.00016.97
8.0.160.0070.00016.94
8.0.150.0030.00316.72
8.0.140.0000.00716.77
8.0.130.0030.00313.25
8.0.120.0040.00416.75
8.0.110.0030.00516.75
8.0.100.0070.00016.94
8.0.90.0050.00316.92
8.0.80.0030.01316.83
8.0.70.0080.00016.98
8.0.60.0020.00516.83
8.0.50.0000.00816.85
8.0.30.0100.01017.17
8.0.20.0140.00817.40
8.0.10.0000.00716.89
8.0.00.0070.01016.74
7.4.330.0000.00515.15
7.4.320.0030.00316.58
7.4.300.0000.00616.51
7.4.290.0000.00816.54
7.4.280.0040.00416.49
7.4.270.0070.00016.55
7.4.260.0030.00616.46
7.4.250.0030.00516.38
7.4.240.0030.00316.48
7.4.230.0070.00016.61
7.4.220.0100.00716.45
7.4.210.0070.00716.61
7.4.200.0040.00416.64
7.4.190.0070.00016.39
7.4.160.0070.01016.31
7.4.150.0090.00917.40
7.4.140.0080.00917.86
7.4.130.0090.00916.50
7.4.120.0070.01016.48
7.4.110.0070.01016.49
7.4.100.0190.00016.50
7.4.90.0070.01016.51
7.4.80.0160.00619.39
7.4.70.0110.00516.35
7.4.60.0030.01316.48
7.4.50.0050.00316.32
7.4.40.0030.01322.77
7.4.30.0000.01516.23
7.4.00.0110.00714.95
7.3.330.0040.00313.05
7.3.320.0030.00313.14
7.3.310.0040.00416.25
7.3.300.0000.00716.24
7.3.290.0060.00916.27
7.3.280.0120.00816.34
7.3.270.0120.00617.40
7.3.260.0120.00616.36
7.3.250.0110.00716.50
7.3.240.0100.00716.49
7.3.230.0110.00716.44
7.3.210.0090.00916.56
7.3.200.0060.00916.23
7.3.190.0070.01016.48
7.3.180.0160.00016.36
7.3.170.0080.00716.47
7.3.160.0080.00816.46
7.3.120.0000.01714.83
7.2.330.0220.03616.35
7.2.320.0030.01916.62
7.2.310.0040.01216.62
7.2.300.0090.01016.39
7.2.290.0060.00916.70
7.2.00.0060.00619.33
7.1.200.0090.00915.48
7.1.100.0770.00412.25
7.1.70.0030.00617.27
7.1.60.0120.01219.46
7.1.50.0060.00616.85
7.1.00.0000.08022.43
7.0.200.0270.00314.46
7.0.140.0030.06721.95
7.0.60.0030.07020.08
7.0.50.0070.05717.90
7.0.40.0070.05320.40
7.0.30.0530.06320.13
7.0.20.0300.08020.09
7.0.10.0030.05020.32
7.0.00.0070.07020.33
5.6.280.0070.07020.90
5.6.210.0130.07320.47
5.6.200.0100.07318.18
5.6.190.0070.07020.43
5.6.180.0270.07020.64
5.6.170.0400.07020.38
5.6.160.0070.06720.44
5.6.150.0100.04718.22
5.6.140.0070.04718.21
5.6.130.0030.04718.14
5.6.120.0070.05020.98
5.6.110.0100.05320.98
5.6.100.0030.04720.97
5.6.90.0100.04720.97
5.6.80.0130.07320.40
5.6.70.3300.03720.52
5.5.350.0300.07320.36
5.5.340.0030.06717.99
5.5.330.0130.04720.34
5.5.320.0200.04320.30
5.5.310.0330.06720.29
5.5.300.0070.06717.97
5.5.290.0070.07317.98
5.5.280.0100.05720.71
5.5.270.0070.08320.76
5.5.260.0070.08320.86
5.5.250.0100.05720.68
5.5.240.0300.06720.17
5.4.450.0730.06719.23
5.4.440.0100.05719.33
5.4.430.0600.06319.48
5.4.420.0100.05719.61
5.4.410.0670.05019.17
5.4.400.0770.06019.08
5.4.390.0100.07318.91
5.4.380.0400.04718.68
5.4.370.0330.05718.62
5.4.360.0400.04318.45
5.4.350.0400.04318.62
5.4.340.0330.05318.68
5.4.320.0080.03512.45
5.4.310.0060.04112.45
5.4.300.0070.03612.45
5.4.290.0070.05112.43
5.4.280.0100.06312.33
5.4.270.0060.05212.33
5.4.260.0050.05512.33
5.4.250.0100.05212.33
5.4.240.0060.05412.33
5.4.230.0070.04112.32
5.4.220.0050.04012.32
5.4.210.0090.04312.32
5.4.200.0040.05812.32
5.4.190.0060.03912.32
5.4.180.0090.03512.32
5.4.170.0060.03812.33
5.4.160.0060.04412.33
5.4.150.0060.04212.32
5.4.140.0090.03812.01
5.4.130.0060.04411.99
5.4.120.0060.04411.95
5.4.110.0040.04011.95
5.4.100.0090.04111.95
5.4.90.0070.03711.95
5.4.80.0060.03911.95
5.4.70.0040.04111.95
5.4.60.0090.03511.94
5.4.50.0060.03911.95
5.4.40.0020.03911.93
5.4.30.0070.03511.93
5.4.20.0100.03211.93
5.4.10.0040.03811.93
5.4.00.0070.03711.42
5.3.290.0060.03912.80
5.3.280.0060.04612.71
5.3.270.0070.04112.73
5.3.260.0120.03512.72
5.3.250.0040.04212.72
5.3.240.0100.03512.72
5.3.230.0050.04212.71
5.3.220.0060.04412.68
5.3.210.0070.04012.68
5.3.200.0070.03812.68
5.3.190.0070.04012.67
5.3.180.0130.04812.67
5.3.170.0060.05512.67
5.3.160.0110.05012.67
5.3.150.0120.06612.67
5.3.140.0170.07512.66
5.3.130.0190.06712.66
5.3.120.0130.06112.66
5.3.110.0070.06012.66
5.3.100.0110.04412.12
5.3.90.0110.07012.08
5.3.80.0050.04312.07
5.3.70.0080.04012.07
5.3.60.0070.04012.06
5.3.50.0090.04112.00
5.3.40.0050.05212.00
5.3.30.0100.04811.94
5.3.20.0080.04811.72
5.3.10.0070.05511.69
5.3.00.0040.05411.68
5.2.170.0070.0429.18
5.2.160.0070.0419.19
5.2.150.0080.0459.19
5.2.140.0070.0419.18
5.2.130.0040.0549.14
5.2.120.0070.0429.14
5.2.110.0070.0379.15
5.2.100.0060.0369.14
5.2.90.0040.0319.14
5.2.80.0070.0449.14
5.2.70.0080.0409.14
5.2.60.0060.0419.09
5.2.50.0020.0359.06
5.2.40.0060.0299.04
5.2.30.0050.0309.01
5.2.20.0040.0299.00
5.2.10.0040.0288.93
5.2.00.0060.0298.78
5.1.60.0040.0248.07
5.1.50.0030.0288.06
5.1.40.0080.0358.05
5.1.30.0090.0368.40
5.1.20.0040.0408.41
5.1.10.0040.0388.14
5.1.00.0080.0358.14
5.0.50.0050.0296.62
5.0.40.0070.0276.48
5.0.30.0070.0436.29
5.0.20.0040.0226.26
5.0.10.0050.0336.24
5.0.00.0030.0426.23
4.4.90.0020.0244.78
4.4.80.0030.0234.75
4.4.70.0060.0264.75
4.4.60.0050.0214.75
4.4.50.0040.0174.77
4.4.40.0040.0374.71
4.4.30.0020.0234.76
4.4.20.0030.0224.84
4.4.10.0040.0164.85
4.4.00.0050.0264.76
4.3.110.0040.0164.67
4.3.100.0040.0164.66
4.3.90.0030.0174.64
4.3.80.0030.0264.58
4.3.70.0040.0164.63
4.3.60.0050.0154.63
4.3.50.0060.0144.62
4.3.40.0040.0264.54
4.3.30.0020.0173.29
4.3.20.0010.0243.26
4.3.10.0040.0203.22
4.3.00.0000.01310.53

preferences:
47.63 ms | 400 KiB | 5 Q