3v4l.org

run code in 300+ PHP versions simultaneously
<?php class dupa { public $a = 'j'; public static $NICE = 'STATIC_VALUE'; public function __construct($param) { $this->a = $param; echo '+_construct'.$this->a.self::$NICE; } }; $a = new dupa('blabla'); echo $a->a; $b = new dupa(''); echo $b->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.60.0150.00318.43
8.3.50.0130.00222.00
8.3.40.0110.01418.85
8.3.30.0000.01519.06
8.3.20.0080.00020.33
8.3.10.0040.00422.13
8.3.00.0030.00622.48
8.2.180.0110.00716.63
8.2.170.0070.01022.96
8.2.160.0110.00420.93
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.01126.16
8.2.120.0050.00319.12
8.2.110.0040.00420.99
8.2.100.0060.00617.74
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0050.00318.00
8.2.50.0000.00818.10
8.2.40.0080.00518.00
8.2.30.0070.00318.08
8.2.20.0080.00017.66
8.2.10.0040.00419.45
8.2.00.0050.00217.56
8.1.280.0100.01025.92
8.1.270.0080.00022.04
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00422.14
8.1.230.0000.01017.52
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.25
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0080.00018.51
8.1.160.0000.00822.02
8.1.150.0000.00718.64
8.1.140.0040.00417.41
8.1.130.0030.00317.81
8.1.120.0000.00717.35
8.1.110.0050.00317.49
8.1.100.0070.00017.47
8.1.90.0000.00717.35
8.1.80.0030.00317.48
8.1.70.0030.00517.44
8.1.60.0000.00817.62
8.1.50.0030.00617.56
8.1.40.0000.00717.41
8.1.30.0030.00517.56
8.1.20.0030.00517.69
8.1.10.0040.00417.57
8.1.00.0060.00317.56
8.0.300.0000.00818.77
8.0.290.0050.00316.63
8.0.280.0040.00418.43
8.0.270.0030.00317.25
8.0.260.0000.00716.84
8.0.250.0000.00716.95
8.0.240.0040.00416.94
8.0.230.0040.00416.93
8.0.220.0030.00516.84
8.0.210.0000.00716.90
8.0.200.0000.00616.84
8.0.190.0080.00016.89
8.0.180.0030.00316.82
8.0.170.0040.00417.01
8.0.160.0040.00416.90
8.0.150.0040.00416.74
8.0.140.0000.00716.82
8.0.130.0060.00013.41
8.0.120.0030.00516.83
8.0.110.0050.00316.88
8.0.100.0000.00716.78
8.0.90.0030.00516.96
8.0.80.0040.01116.89
8.0.70.0040.00417.01
8.0.60.0000.00716.93
8.0.50.0030.00616.72
8.0.30.0150.00517.10
8.0.20.0130.00617.40
8.0.10.0040.00416.83
8.0.00.0080.01016.74
7.4.330.0000.00515.15
7.4.320.0000.00616.61
7.4.300.0090.00016.55
7.4.290.0000.00616.65
7.4.280.0030.00316.46
7.4.270.0040.00416.61
7.4.260.0080.00016.55
7.4.250.0070.00016.56
7.4.240.0040.00416.50
7.4.230.0040.00416.41
7.4.220.0120.00616.64
7.4.210.0050.01116.61
7.4.200.0000.00716.59
7.4.190.0000.00716.75
7.4.160.0110.00416.82
7.4.150.0030.01417.40
7.4.140.0070.01017.86
7.4.130.0080.00816.48
7.4.120.0100.00916.58
7.4.110.0100.00616.50
7.4.100.0100.01016.45
7.4.90.0110.00616.50
7.4.80.0030.01419.39
7.4.70.0140.00316.27
7.4.60.0090.00616.31
7.4.50.0000.00816.51
7.4.40.0060.00922.77
7.4.30.0040.01216.39
7.4.00.0080.01014.92
7.3.330.0060.00013.26
7.3.320.0000.00513.31
7.3.310.0040.00416.13
7.3.300.0030.00316.30
7.3.290.0090.00516.34
7.3.280.0110.00716.31
7.3.270.0070.01017.40
7.3.260.0140.00316.26
7.3.250.0220.00516.31
7.3.240.0130.00316.57
7.3.230.0130.00316.43
7.3.210.0070.01116.46
7.3.200.0030.01719.39
7.3.190.0050.01116.27
7.3.180.0110.00416.61
7.3.170.0060.01016.27
7.3.160.0000.01516.40
7.3.120.0050.00914.99
7.3.110.0080.00815.05
7.3.100.0070.01014.79
7.3.90.0120.00314.57
7.3.80.0090.00914.80
7.3.70.0040.00814.75
7.3.60.0060.00315.00
7.3.50.0120.00414.86
7.3.40.0060.00314.48
7.3.30.0030.01014.78
7.3.20.0040.01116.66
7.3.10.0070.00716.55
7.3.00.0090.00616.52
7.2.330.0090.00916.47
7.2.320.0040.01516.43
7.2.310.0000.01616.47
7.2.300.0100.00616.73
7.2.290.0070.01016.66
7.2.250.0070.01015.09
7.2.240.0090.00915.04
7.2.230.0070.00315.17
7.2.220.0030.01015.16
7.2.210.0040.01515.09
7.2.200.0120.00015.05
7.2.190.0030.01014.90
7.2.180.0040.00415.00
7.2.170.0100.00715.08
7.2.00.0060.00319.23
7.1.330.0080.00815.72
7.1.320.0060.00615.73
7.1.310.0070.00716.03
7.1.300.0060.00615.78
7.1.290.0110.00415.88
7.1.280.0070.00415.57
7.1.270.0040.01115.85
7.1.260.0060.00815.80
7.1.100.0060.01217.86
7.1.70.0100.00316.76
7.1.60.0110.01419.82
7.1.50.0070.01516.96
7.1.00.0130.06722.54
7.0.200.0110.00016.81
7.0.140.0030.07322.09
7.0.60.0100.08319.92
7.0.50.0070.08017.84
7.0.40.0070.04020.27
7.0.30.0170.04020.09
7.0.20.0200.05020.32
7.0.10.0270.07720.22
7.0.00.0170.07720.25
5.6.280.0030.07321.05
5.6.210.0170.07020.57
5.6.200.0100.05718.18
5.6.190.0130.08020.48
5.6.180.0000.09020.33
5.6.170.0270.07720.61
5.6.160.0100.08020.42
5.6.150.0070.06718.15
5.6.140.0100.03318.28
5.6.130.0100.03718.20
5.6.120.0030.04021.14
5.6.110.0100.07020.97
5.6.100.0170.07321.01
5.6.90.0000.08720.88
5.6.80.0100.07020.39
5.6.70.0370.06720.38
5.5.350.0070.06720.34
5.5.340.0070.03718.02
5.5.330.0100.08320.25
5.5.320.0070.05020.36
5.5.310.0370.06720.29
5.5.300.0030.06717.95
5.5.290.0070.06018.02
5.5.280.0130.04320.90
5.5.270.0070.08020.87
5.5.260.0030.06720.76
5.5.250.0100.07020.75
5.5.240.0200.06320.16
5.4.450.0330.04319.63
5.4.440.0770.06319.66
5.4.430.0800.05719.51
5.4.420.0070.05719.26
5.4.410.0070.07319.02
5.4.400.0030.05718.63
5.4.390.0070.06018.54
5.4.380.0130.05318.63
5.4.370.0100.05318.52
5.4.360.0170.05018.55
5.4.350.0130.05318.76
5.4.340.0100.06018.59
5.4.320.0100.03412.50
5.4.310.0090.04212.50
5.4.300.0060.04112.50
5.4.290.0060.04112.49
5.4.280.0070.03812.39
5.4.270.0050.03612.36
5.4.260.0070.03612.36
5.4.250.0050.03812.37
5.4.240.0100.03212.37
5.4.230.0050.03912.36
5.4.220.0080.03412.36
5.4.210.0040.03812.36
5.4.200.0090.04012.36
5.4.190.0060.04212.35
5.4.180.0060.04112.35
5.4.170.0050.04012.36
5.4.160.0060.03712.35
5.4.150.0050.03612.36
5.4.140.0050.03812.03
5.4.130.0070.03412.03
5.4.120.0050.03611.98
5.4.110.0030.03811.98
5.4.100.0090.03211.98
5.4.90.0060.03611.98
5.4.80.0050.03711.98
5.4.70.0020.03811.98
5.4.60.0050.03611.97
5.4.50.0040.04411.98
5.4.40.0060.03411.96
5.4.30.0040.05011.96
5.4.20.0090.04311.95
5.4.10.0060.04311.96
5.4.00.0060.03611.44
5.3.290.0060.03912.80
5.3.280.0080.03512.71
5.3.270.0100.03512.73
5.3.260.0100.03512.72
5.3.250.0070.03712.71
5.3.240.0030.04412.72
5.3.230.0050.03912.71
5.3.220.0080.03412.68
5.3.210.0050.04112.68
5.3.200.0050.03712.68
5.3.190.0070.03912.68
5.3.180.0070.03612.68
5.3.170.0050.03812.67
5.3.160.0060.03912.67
5.3.150.0100.03412.68
5.3.140.0060.03812.66
5.3.130.0070.04112.66
5.3.120.0060.03912.66
5.3.110.0050.04112.66
5.3.100.0060.03812.12
5.3.90.0090.03312.09
5.3.80.0070.03912.08
5.3.70.0060.05112.07
5.3.60.0090.04812.06
5.3.50.0070.03912.00
5.3.40.0100.04312.00
5.3.30.0060.03511.95
5.3.20.0080.03311.73
5.3.10.0060.03611.70
5.3.00.0090.03311.68
5.2.170.0060.0379.19
5.2.160.0070.0399.18
5.2.150.0070.0419.18
5.2.140.0060.0409.18
5.2.130.0090.0389.14
5.2.120.0080.0279.14
5.2.110.0060.0289.14
5.2.100.0050.0289.14
5.2.90.0080.0269.14
5.2.80.0050.0299.14
5.2.70.0070.0389.13
5.2.60.0080.0389.10
5.2.50.0060.0409.07
5.2.40.0050.0379.04
5.2.30.0090.0329.01
5.2.20.0100.0259.01
5.2.10.0060.0338.91
5.2.00.0070.0358.76
5.1.60.0050.0248.05
5.1.50.0030.0268.05
5.1.40.0030.0378.04
5.1.30.0090.0338.38
5.1.20.0120.0298.41
5.1.10.0090.0228.14
5.1.00.0020.0298.13
5.0.50.0040.0206.61
5.0.40.0050.0176.47
5.0.30.0040.0326.29
5.0.20.0030.0206.25
5.0.10.0040.0206.23
5.0.00.0040.0316.22
4.4.90.0040.0164.78
4.4.80.0040.0154.75
4.4.70.0020.0164.76
4.4.60.0050.0134.75
4.4.50.0010.0174.77
4.4.40.0030.0264.71
4.4.30.0040.0144.76
4.4.20.0020.0164.84
4.4.10.0030.0164.84
4.4.00.0030.0254.76
4.3.110.0020.0164.67
4.3.100.0010.0164.66
4.3.90.0030.0144.63
4.3.80.0000.0274.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0020.0244.54
4.3.30.0020.0163.29
4.3.20.0030.0153.27
4.3.10.0010.0163.23
4.3.00.0070.01715.03

preferences:
47.52 ms | 401 KiB | 5 Q