3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Testing{ function __construct(){ unset($this); } function write($str){ echo $str; } } $a = new Testing; $a->write("working");

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.0120.00918.56
8.3.50.0140.00621.25
8.3.40.0070.00718.66
8.3.30.0080.01218.83
8.3.20.0050.00320.21
8.3.10.0080.00023.48
8.3.00.0000.00819.13
8.2.180.0090.00616.75
8.2.170.0140.00022.96
8.2.160.0120.00320.43
8.2.150.0050.00224.18
8.2.140.0040.00724.66
8.2.130.0040.00426.16
8.2.120.0090.00022.16
8.2.110.0060.00322.11
8.2.100.0120.00017.50
8.2.90.0000.00818.80
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0090.00317.68
8.2.50.0080.00018.07
8.2.40.0000.00919.53
8.2.30.0040.00417.93
8.2.20.0040.00417.54
8.2.10.0000.00817.85
8.2.00.0050.00217.42
8.1.280.0090.01225.92
8.1.270.0040.00423.58
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.83
8.1.230.0070.00419.55
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0070.00316.97
8.1.190.0030.00516.88
8.1.180.0080.00018.10
8.1.170.0070.00418.22
8.1.160.0050.00221.92
8.1.150.0000.00718.75
8.1.140.0080.00017.23
8.1.130.0040.00217.76
8.1.120.0040.00417.25
8.1.110.0080.00017.34
8.1.100.0070.00017.20
8.1.90.0000.00717.34
8.1.80.0000.00817.30
8.1.70.0000.00717.23
8.1.60.0030.00617.46
8.1.50.0030.00517.34
8.1.40.0000.00717.28
8.1.30.0060.00317.50
8.1.20.0000.00717.52
8.1.10.0040.00417.27
8.1.00.0070.00017.23
8.0.300.0030.00518.77
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0070.00017.13
8.0.260.0000.00617.12
8.0.250.0070.00016.76
8.0.240.0070.00016.78
8.0.230.0070.00316.80
8.0.220.0040.00416.86
8.0.210.0050.00316.80
8.0.200.0000.00616.84
8.0.190.0040.00416.79
8.0.180.0040.00416.79
8.0.170.0000.00816.86
8.0.160.0000.00716.89
8.0.150.0070.00016.71
8.0.140.0090.00016.76
8.0.130.0050.00013.21
8.0.120.0080.00016.84
8.0.110.0070.00016.73
8.0.100.0040.00416.68
8.0.90.0050.00216.87
8.0.80.0110.00816.82
8.0.70.0000.00716.82
8.0.60.0000.00716.68
8.0.50.0080.00016.67
8.0.30.0150.00716.78
8.0.20.0070.01217.40
8.0.10.0030.00616.99
8.0.00.0120.00716.64
7.4.330.0000.00515.02
7.4.320.0000.00616.26
7.4.300.0000.00616.37
7.4.290.0000.00716.46
7.4.280.0000.00816.48
7.4.270.0050.00316.37
7.4.260.0000.00716.40
7.4.250.0070.00016.32
7.4.240.0070.00016.45
7.4.230.0000.00716.43
7.4.220.0100.00716.40
7.4.210.0070.01316.29
7.4.200.0000.00716.20
7.4.160.0150.00316.43
7.4.150.0060.01217.40
7.4.140.0090.00917.86
7.4.130.0150.00516.34
7.4.120.0080.00816.38
7.4.110.0080.00816.44
7.4.100.0150.00416.40
7.4.90.0030.01416.53
7.4.80.0060.00919.39
7.4.70.0130.00616.37
7.4.60.0060.00916.44
7.4.50.0040.00416.27
7.4.40.0070.01016.19
7.4.30.0060.01016.35
7.4.00.0100.00614.90
7.3.330.0050.00013.16
7.3.320.0070.00013.21
7.3.310.0040.00416.28
7.3.300.0000.00616.20
7.3.290.0100.00516.21
7.3.280.0080.00716.25
7.3.270.0090.00917.40
7.3.260.0120.00616.37
7.3.250.0060.01316.19
7.3.240.0110.00616.21
7.3.230.0080.00816.39
7.3.210.0030.01516.40
7.3.200.0110.00719.39
7.3.190.0100.01116.39
7.3.180.0180.00016.08
7.3.170.0070.01316.35
7.3.160.0040.01416.39
7.3.120.0060.01114.78
7.3.110.0070.00714.77
7.3.100.0070.00714.72
7.3.90.0060.00614.79
7.3.80.0040.00714.81
7.3.70.0040.01114.71
7.3.60.0000.01414.49
7.3.50.0040.01214.55
7.3.40.0070.00714.59
7.3.30.0070.00314.39
7.3.20.0070.01016.67
7.3.10.0070.01016.30
7.3.00.0030.01016.41
7.2.330.0180.00016.23
7.2.320.0060.01116.26
7.2.310.0080.00816.54
7.2.300.0100.00716.51
7.2.290.0070.01016.36
7.2.240.0030.00714.91
7.2.230.0070.00714.98
7.2.220.0040.00714.87
7.2.210.0090.00614.75
7.2.200.0000.01114.96
7.2.190.0060.01214.89
7.2.180.0070.01014.78
7.2.170.0000.01514.89
7.2.160.0030.01314.80
7.2.150.0090.00616.88
7.2.140.0120.00016.93
7.2.130.0070.00716.69
7.2.120.0030.01016.59
7.2.110.0030.01316.58
7.2.100.0110.00416.54
7.2.90.0090.00616.84
7.2.80.0060.00616.71
7.2.70.0040.01416.71
7.2.60.0020.01116.68
7.2.50.0100.00616.80
7.2.40.0000.01616.70
7.2.30.0140.00416.74
7.2.20.0090.00916.58
7.2.10.0070.01016.82
7.2.00.0150.00316.58
7.1.330.0030.00715.63
7.1.320.0090.00015.29
7.1.310.0060.00915.50
7.1.300.0030.01215.56
7.1.290.0030.00615.30
7.1.280.0120.00415.75
7.1.270.0060.00915.21
7.1.260.0080.00815.64
7.1.250.0030.01015.51
7.1.200.0000.01015.16
7.1.100.0070.00717.93
7.1.70.0000.01316.97
7.1.60.0000.01819.19
7.1.50.0170.00716.85
7.1.00.0100.07322.43
7.0.200.0070.00714.67
7.0.140.0030.07322.18
7.0.60.0200.05319.93
7.0.50.0170.05317.85
7.0.40.0100.03720.40
7.0.30.0300.08320.20
7.0.20.0370.07720.15
7.0.10.0030.05320.06
7.0.00.0100.04320.35
5.6.280.0070.07021.10
5.6.210.0070.07720.67
5.6.200.0000.07718.29
5.6.190.0030.06020.77
5.6.180.4370.04320.55
5.6.170.0130.04720.55
5.6.160.0170.05020.59
5.6.150.0000.04718.34
5.6.140.0030.03718.18
5.6.130.0130.03718.28
5.6.120.0070.08320.99
5.6.110.0130.06021.02
5.6.100.0070.06720.98
5.6.90.0030.06021.01
5.6.80.0130.04020.29
5.6.70.4030.03320.39
5.5.350.0300.07020.45
5.5.340.0130.06318.05
5.5.330.0100.07320.25
5.5.320.3070.04020.20
5.5.310.0100.06720.34
5.5.300.0030.06017.95
5.5.290.0000.06718.04
5.5.280.0170.07320.80
5.5.270.0070.05020.88
5.5.260.0000.05720.79
5.5.250.0030.06320.55
5.5.240.0370.06020.04
5.4.450.0700.07319.48
5.4.440.0800.06019.63
5.4.430.0670.05319.45
5.4.420.0770.04719.38
5.4.410.0830.04719.50
5.4.400.0830.05018.88
5.4.390.0700.06019.16
5.4.380.0830.05019.00
5.4.370.0530.06319.28
5.4.360.0600.06319.03
5.4.350.0070.05719.16
5.4.340.0070.03412.01
5.4.320.0110.03112.50
5.4.310.0060.03712.50
5.4.300.0080.03412.50
5.4.290.0060.03712.50
5.4.280.0040.03712.39
5.4.270.0080.04112.40
5.4.260.0070.03612.40
5.4.250.0080.03412.39
5.4.240.0050.03612.40
5.4.230.0030.04012.39
5.4.220.0040.03712.39
5.4.210.0090.03112.39
5.4.200.0040.03912.38
5.4.190.0030.03812.38
5.4.180.0060.03512.38
5.4.170.0090.03212.39
5.4.160.0050.03612.39
5.4.150.0090.03212.39
5.4.140.0050.03812.07
5.4.130.0070.03412.06
5.4.120.0030.03712.01
5.4.110.0040.03712.01
5.4.100.0050.03612.01
5.4.90.0070.03712.02
5.4.80.0060.03912.01
5.4.70.0080.03212.01
5.4.60.0120.02912.01
5.4.50.0030.03812.01
5.4.40.0060.03312.00
5.4.30.0040.03611.99
5.4.20.0080.03411.99
5.4.10.0050.03511.99
5.4.00.0100.03111.48
5.3.290.0060.03712.80
5.3.280.0060.03712.71
5.3.270.0060.03912.73
5.3.260.0070.03912.72
5.3.250.0060.04112.72
5.3.240.0050.04012.72
5.3.230.0060.03712.71
5.3.220.0030.03912.68
5.3.210.0050.04012.68
5.3.200.0040.03812.68
5.3.190.0080.03512.67
5.3.180.0050.03712.68
5.3.170.0070.03512.67
5.3.160.0090.03512.67
5.3.150.0060.03712.68
5.3.140.0080.03612.66
5.3.130.0040.04012.66
5.3.120.0080.03612.66
5.3.110.0070.03712.66
5.3.100.0090.03312.12
5.3.90.0040.03812.10
5.3.80.0040.03812.09
5.3.70.0070.03412.09
5.3.60.0030.03912.08
5.3.50.0040.03712.03
5.3.40.0060.03512.03
5.3.30.0080.03211.98
5.3.20.0060.03711.76
5.3.10.0080.04011.73
5.3.00.0060.03611.72
5.2.170.0030.0329.23
5.2.160.0030.0319.23
5.2.150.0070.0289.23
5.2.140.0040.0319.22
5.2.130.0070.0279.18
5.2.120.0030.0309.18
5.2.110.0070.0339.18
5.2.100.0080.0289.18
5.2.90.0070.0279.18
5.2.80.0030.0329.17
5.2.70.0060.0299.17
5.2.60.0060.0289.13
5.2.50.0060.0289.10
5.2.40.0030.0309.07
5.2.30.0030.0319.05
5.2.20.0030.0299.03
5.2.10.0040.0278.95
5.2.00.0030.0308.80
5.1.60.0030.0258.09
5.1.50.0020.0268.09
5.1.40.0050.0238.07
5.1.30.0080.0228.41
5.1.20.0040.0268.44
5.1.10.0040.0258.17
5.1.00.0060.0238.16
5.0.50.0040.0196.64
5.0.40.0020.0206.50
5.0.30.0030.0326.32
5.0.20.0030.0206.27
5.0.10.0030.0206.25
5.0.00.0040.0296.25
4.4.90.0030.0214.78
4.4.80.0020.0154.76
4.4.70.0020.0154.75
4.4.60.0030.0154.75
4.4.50.0040.0144.77
4.4.40.0040.0274.71
4.4.30.0030.0174.76
4.4.20.0050.0154.84
4.4.10.0020.0174.85
4.4.00.0040.0294.76
4.3.110.0030.0214.67
4.3.100.0020.0154.67
4.3.90.0020.0154.64
4.3.80.0050.0214.58
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0040.0224.54
4.3.30.0030.0153.30
4.3.20.0020.0163.28
4.3.10.0020.0153.24
4.3.00.0130.0206.86

preferences:
62.36 ms | 401 KiB | 5 Q