3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CTroll { public function hardTrolling(){echo "in hard trolling";} public function softTrolling(){echo "in soft trolling";} } $randomTroll = new CTroll(); $powerLevel = "hard"; $appended = $powerLevel . "Trolling"; $randomTroll->{$powerLevel . 'Trolling'}();

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.0150.00418.55
8.3.50.0070.01022.05
8.3.40.0110.00418.77
8.3.30.0030.01218.76
8.3.20.0040.00420.20
8.3.10.0030.00622.04
8.3.00.0050.00322.52
8.2.180.0130.00616.63
8.2.170.0070.01022.96
8.2.160.0170.00020.82
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0000.00819.36
8.2.110.0060.00320.44
8.2.100.0040.00817.78
8.2.90.0080.00019.09
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0000.00818.22
8.2.30.0050.00318.00
8.2.20.0020.00517.56
8.2.10.0040.00417.77
8.2.00.0050.00317.61
8.1.280.0140.00025.92
8.1.270.0070.00022.14
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.06
8.1.230.0090.00322.11
8.1.220.0000.00917.77
8.1.210.0040.00418.77
8.1.200.0070.00317.10
8.1.190.0040.00417.30
8.1.180.0040.00418.57
8.1.170.0050.00318.46
8.1.160.0030.00321.86
8.1.150.0030.00618.61
8.1.140.0040.00417.39
8.1.130.0000.00717.71
8.1.120.0000.00717.35
8.1.110.0060.00317.39
8.1.100.0030.00317.42
8.1.90.0050.00317.38
8.1.80.0000.00717.31
8.1.70.0030.00317.35
8.1.60.0080.00017.46
8.1.50.0000.00717.54
8.1.40.0000.00817.41
8.1.30.0030.00517.66
8.1.20.0040.00417.51
8.1.10.0040.00417.47
8.1.00.0000.00917.37
8.0.300.0000.00818.77
8.0.290.0040.00417.04
8.0.280.0000.00718.49
8.0.270.0050.00317.25
8.0.260.0020.00516.77
8.0.250.0000.00816.87
8.0.240.0040.00416.93
8.0.230.0000.01016.88
8.0.220.0070.00016.89
8.0.210.0070.00016.91
8.0.200.0030.00316.96
8.0.190.0040.00416.83
8.0.180.0040.00416.90
8.0.170.0080.00016.89
8.0.160.0040.00416.99
8.0.150.0040.00416.76
8.0.140.0000.00716.87
8.0.130.0000.00613.24
8.0.120.0000.00816.96
8.0.110.0000.00716.77
8.0.100.0040.00416.84
8.0.90.0000.00816.79
8.0.80.0110.01116.85
8.0.70.0040.00416.73
8.0.60.0050.00316.69
8.0.50.0000.00816.95
8.0.30.0080.01117.31
8.0.20.0070.01517.40
8.0.10.0030.00516.86
8.0.00.0080.01116.65
7.4.330.0000.00615.00
7.4.320.0040.00416.45
7.4.300.0060.00016.52
7.4.290.0000.00716.45
7.4.280.0000.00716.44
7.4.270.0030.00316.50
7.4.260.0030.00516.45
7.4.250.0040.00416.41
7.4.240.0040.00416.54
7.4.230.0070.00016.41
7.4.220.0030.01416.54
7.4.210.0070.00816.61
7.4.200.0000.00716.68
7.4.190.0030.00316.47
7.4.160.0120.00316.45
7.4.150.0090.00817.40
7.4.140.0070.01217.86
7.4.130.0090.01116.38
7.4.120.0120.00716.60
7.4.110.0080.00816.43
7.4.100.0110.00716.66
7.4.90.0200.00816.36
7.4.80.0070.01319.39
7.4.70.0120.00416.39
7.4.60.0080.00916.59
7.4.50.0050.00316.21
7.4.40.0120.00422.77
7.4.30.0060.01216.31
7.4.00.0000.01515.13
7.3.330.0050.00013.24
7.3.320.0060.00013.00
7.3.310.0030.00316.26
7.3.300.0000.00716.12
7.3.290.0090.00916.25
7.3.280.0040.01116.23
7.3.270.0130.00317.40
7.3.260.0140.00316.18
7.3.250.0050.01516.39
7.3.240.0030.01316.35
7.3.230.0070.01116.54
7.3.210.0120.00616.18
7.3.200.0110.00719.39
7.3.190.0070.01016.48
7.3.180.0070.01016.39
7.3.170.0130.00316.34
7.3.160.0120.00416.20
7.3.120.0000.01814.82
7.2.330.0110.00716.80
7.2.320.0070.01016.68
7.2.310.0100.00716.71
7.2.300.0100.00716.64
7.2.290.0040.01216.62
7.1.70.0000.00816.95
7.1.60.0140.01019.82
7.1.50.0090.01216.94
7.1.00.0070.07322.43
7.0.200.0030.00716.50
7.0.140.0030.07722.21
7.0.60.0130.08019.86
7.0.50.0070.08317.87
7.0.40.0000.05020.27
7.0.30.0300.05020.26
7.0.20.0200.03720.09
7.0.10.0300.07020.09
7.0.00.0000.08020.05
5.6.280.0070.07021.07
5.6.210.0100.07720.71
5.6.200.0070.07318.18
5.6.190.0000.04320.39
5.6.180.3170.04720.63
5.6.170.0130.05020.50
5.6.160.0000.05320.44
5.6.150.0070.06718.18
5.6.140.0100.08018.28
5.6.130.0030.05718.15
5.6.120.0170.07321.02
5.6.110.0100.08021.03
5.6.100.0170.05721.00
5.6.90.0000.05020.95
5.6.80.0030.08720.37
5.6.70.0300.06020.39
5.5.350.0030.08320.53
5.5.340.0000.04718.03
5.5.330.0070.07720.27
5.5.320.0170.06720.34
5.5.310.0170.04020.37
5.5.300.0000.08317.94
5.5.290.0070.07718.05
5.5.280.0070.09020.87
5.5.270.0030.05020.80
5.5.260.0070.06320.88
5.5.250.0170.05720.69
5.5.240.0030.05020.16
5.4.450.0600.05019.47
5.4.440.0770.06019.30
5.4.430.0330.05019.38
5.4.420.0600.05719.60
5.4.410.0730.05719.48
5.4.400.0770.00018.84
5.4.390.0770.00018.61
5.4.380.0230.05718.74
5.4.370.0970.05018.84
5.4.360.0930.04718.81
5.4.350.1000.05318.75
5.4.340.0800.05718.47
5.4.320.0040.03812.50
5.4.310.0070.04012.50
5.4.300.0060.03812.50
5.4.290.0080.04212.50
5.4.280.0090.05112.37
5.4.270.0080.04712.36
5.4.260.0090.05412.36
5.4.250.0100.04212.37
5.4.240.0080.03612.37
5.4.230.0040.04012.36
5.4.220.0030.04112.36
5.4.210.0070.03512.36
5.4.200.0120.06712.36
5.4.190.0100.04612.36
5.4.180.0070.05112.36
5.4.170.0060.04512.36
5.4.160.0060.04612.36
5.4.150.0110.05412.36
5.4.140.0080.05112.05
5.4.130.0160.05612.04
5.4.120.0070.05611.99
5.4.110.0130.04611.99
5.4.100.0090.05411.98
5.4.90.0070.04511.98
5.4.80.0050.04511.98
5.4.70.0080.03711.98
5.4.60.0090.05011.98
5.4.50.0100.05811.98
5.4.40.0090.03711.97
5.4.30.0110.04011.97
5.4.20.0080.05611.96
5.4.10.0060.05311.96
5.4.00.0090.04711.46
5.3.290.0060.04312.80
5.3.280.0100.05412.71
5.3.270.0090.05412.72
5.3.260.0060.05712.72
5.3.250.0050.07912.71
5.3.240.0070.04312.72
5.3.230.0070.04912.71
5.3.220.0050.05312.68
5.3.210.0120.05912.68
5.3.200.0200.09012.68
5.3.190.0130.06112.68
5.3.180.0160.05812.68
5.3.170.0070.06512.66
5.3.160.0080.04912.67
5.3.150.0080.05212.67
5.3.140.0090.04412.66
5.3.130.0100.04212.66
5.3.120.0050.04112.66
5.3.110.0050.05112.66
5.3.100.0050.03912.12
5.3.90.0060.03612.08
5.3.80.0060.04812.08
5.3.70.0080.04212.07
5.3.60.0060.04212.06
5.3.50.0040.04712.00
5.3.40.0070.04212.00
5.3.30.0050.03911.96
5.3.20.0040.03711.74
5.3.10.0060.03811.70
5.3.00.0070.03911.70
5.2.170.0070.0299.20
5.2.160.0050.0329.20
5.2.150.0060.0299.20
5.2.140.0040.0319.19
5.2.130.0020.0319.15
5.2.120.0050.0329.14
5.2.110.0090.0259.16
5.2.100.0080.0299.15
5.2.90.0080.0359.15
5.2.80.0140.0509.15
5.2.70.0030.0439.14
5.2.60.0050.0429.10
5.2.50.0050.0339.07
5.2.40.0060.0299.04
5.2.30.0050.0339.02
5.2.20.0060.0369.00
5.2.10.0080.0358.92
5.2.00.0060.0388.78
5.1.60.0080.0338.07
5.1.50.0050.0268.07
5.1.40.0040.0258.04
5.1.30.0040.0268.39
5.1.20.0060.0248.42
5.1.10.0020.0378.15
5.1.00.0030.0278.14
5.0.50.0050.0246.62
5.0.40.0050.0356.48
5.0.30.0030.0366.30
5.0.20.0040.0266.26
5.0.10.0040.0286.23
5.0.00.0060.0386.22
4.4.90.0050.0214.78
4.4.80.0070.0194.75
4.4.70.0070.0214.76
4.4.60.0050.0154.75
4.4.50.0040.0144.77
4.4.40.0020.0274.71
4.4.30.0030.0204.76
4.4.20.0030.0154.84
4.4.10.0020.0174.85
4.4.00.0030.0264.76
4.3.110.0020.0184.67
4.3.100.0070.0174.67
4.3.90.0030.0214.63
4.3.80.0060.0284.58
4.3.70.0040.0214.63
4.3.60.0060.0204.63
4.3.50.0050.0224.63
4.3.40.0040.0314.53
4.3.30.0020.0173.28
4.3.20.0040.0153.27
4.3.10.0050.0133.23
4.3.00.0130.0239.32

preferences:
38.04 ms | 401 KiB | 5 Q