3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* class myName{ public function __construct($prop){ echo $prop; } } $obj = new myName('testing'); */ $obj = new class('testing'){ public $prop; public function __construct($value){ $this->prop=$value; } }; echo $obj->prop;

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.0110.00718.55
8.3.50.0070.01316.39
8.3.40.0070.00718.49
8.3.30.0150.00018.50
8.3.20.0070.00020.19
8.3.10.0070.00021.86
8.3.00.0040.00420.26
8.2.180.0120.00916.75
8.2.170.0070.01022.96
8.2.160.0100.00320.52
8.2.150.0050.00324.18
8.2.140.0140.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00417.38
8.2.110.0110.00022.00
8.2.100.0060.00617.93
8.2.90.0060.00319.17
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0080.00417.93
8.2.50.0060.00318.07
8.2.40.0040.00419.12
8.2.30.0040.00420.55
8.2.20.0040.00417.79
8.2.10.0050.00218.06
8.2.00.0050.00318.00
8.1.270.0080.01223.79
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00022.61
8.1.230.0080.00419.26
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0030.00517.23
8.1.180.0020.00518.10
8.1.170.0040.00418.71
8.1.160.0040.00421.94
8.1.150.0040.00418.76
8.1.140.0060.00617.47
8.1.130.0070.00017.71
8.1.120.0000.00717.45
8.1.110.0000.00717.33
8.1.100.0030.00517.48
8.1.90.0000.00717.43
8.1.80.0040.00417.53
8.1.70.0000.00717.35
8.1.60.0040.00417.57
8.1.50.0030.00517.50
8.1.40.0000.00717.38
8.1.30.0000.00817.55
8.1.20.0040.00417.57
8.1.10.0080.00017.63
8.1.00.0000.00717.50
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.30
8.0.270.0030.00317.26
8.0.260.0060.00017.14
8.0.250.0000.00716.96
8.0.240.0000.00716.97
8.0.230.0000.00716.96
8.0.220.0030.00316.89
8.0.210.0080.00016.74
8.0.200.0000.00716.94
8.0.190.0040.00417.00
8.0.180.0040.00416.88
8.0.170.0040.00416.93
8.0.160.0000.00716.86
8.0.150.0050.00316.88
8.0.140.0000.00816.87
8.0.130.0050.00013.31
8.0.120.0040.00416.87
8.0.110.0000.00716.83
8.0.100.0040.00416.88
8.0.90.0000.00816.94
8.0.80.0060.01016.88
8.0.70.0000.00816.87
8.0.60.0040.00416.72
8.0.50.0070.00016.69
8.0.30.0080.00817.03
8.0.20.0100.00917.40
8.0.10.0000.00817.05
8.0.00.0120.00716.85
7.4.330.0030.00315.14
7.4.320.0030.00316.62
7.4.300.0040.00416.61
7.4.290.0000.00716.52
7.4.280.0000.01016.56
7.4.270.0070.00016.61
7.4.260.0040.00416.49
7.4.250.0000.00816.47
7.4.240.0010.00616.54
7.4.230.0000.00716.31
7.4.220.0030.02316.52
7.4.210.0110.00716.65
7.4.200.0030.00316.63
7.4.160.0150.00016.59
7.4.150.0150.00617.40
7.4.140.0100.01317.86
7.4.130.0090.00716.48
7.4.120.0120.01116.54
7.4.110.0110.00716.41
7.4.100.0150.00316.64
7.4.90.0040.01316.50
7.4.80.0060.01019.39
7.4.70.0040.01216.55
7.4.60.0110.00416.41
7.4.50.0030.00316.50
7.4.40.0140.00716.63
7.4.30.0120.00916.50
7.4.10.0090.00915.06
7.4.00.0110.00515.11
7.3.330.0020.00213.24
7.3.320.0050.00013.16
7.3.310.0000.00716.08
7.3.300.0030.00316.24
7.3.290.0060.01116.24
7.3.280.0080.00816.20
7.3.270.0170.00717.40
7.3.260.0100.00616.33
7.3.250.0120.00616.45
7.3.240.0090.00916.39
7.3.230.0160.00616.51
7.3.210.0060.00916.31
7.3.200.0170.00016.38
7.3.190.0030.01316.51
7.3.180.0060.01116.37
7.3.170.0000.01716.27
7.3.160.0100.00616.14
7.3.130.0100.00915.02
7.3.120.0100.00714.71
7.3.110.0060.00814.51
7.3.100.0040.00814.64
7.3.90.0000.01414.54
7.3.80.0000.01615.00
7.3.70.0060.00914.81
7.3.60.0050.00514.48
7.3.50.0040.00814.66
7.3.40.0000.01314.70
7.3.30.0000.01514.63
7.3.20.0070.00716.29
7.3.10.0110.00316.34
7.3.00.0120.00316.32
7.2.330.0080.00816.80
7.2.320.0140.01016.48
7.2.310.0160.00316.68
7.2.300.0100.00616.83
7.2.290.0080.00816.77
7.2.260.0070.01015.28
7.2.250.0070.01015.01
7.2.240.0080.00614.88
7.2.230.0070.00715.23
7.2.220.0060.00815.32
7.2.210.0070.01114.87
7.2.200.0060.01015.13
7.2.190.0000.00915.04
7.2.180.0070.00714.94
7.2.170.0000.01614.84
7.2.160.0100.00315.08
7.2.150.0030.01016.77
7.2.140.0060.00616.96
7.2.130.0100.00316.78
7.2.120.0030.00616.93
7.2.110.0090.00616.70
7.2.100.0040.01216.97
7.2.90.0000.01317.13
7.2.80.0060.01017.04
7.2.70.0070.00716.72
7.2.60.0080.01016.57
7.2.50.0070.01017.13
7.2.40.0060.00617.02
7.2.30.0040.01417.09
7.2.20.0060.00916.94
7.2.10.0000.01516.97
7.2.00.0050.00718.07
7.1.330.0070.00815.55
7.1.320.0040.01115.74
7.1.310.0100.00715.89
7.1.300.0000.01215.68
7.1.290.0040.00715.82
7.1.280.0000.00815.61
7.1.270.0000.00815.54
7.1.260.0090.00615.88
7.1.250.0000.01315.59
7.1.240.0070.00715.64
7.1.230.0100.00715.86
7.1.220.0040.01415.80
7.1.210.0030.00615.75
7.1.200.0020.01215.83
7.1.190.0130.00015.79
7.1.180.0100.00715.88
7.1.170.0000.01415.73
7.1.160.0060.00915.80
7.1.150.0060.00615.67
7.1.140.0060.01015.71
7.1.130.0000.01415.70
7.1.120.0060.00715.77
7.1.110.0040.01215.75
7.1.100.0070.00616.94
7.1.90.0000.01415.91
7.1.80.0030.00915.75
7.1.70.0050.00616.52
7.1.60.0030.01517.45
7.1.50.0060.01316.33
7.1.40.0040.00815.36
7.1.30.0100.00315.71
7.1.20.0090.00315.67
7.1.10.0070.00715.33
7.1.00.0070.04719.09
7.0.330.0030.01015.41
7.0.320.0040.00715.21
7.0.310.0030.01315.37
7.0.300.0060.00615.53
7.0.290.0070.00715.36
7.0.280.0080.00815.61
7.0.270.0030.00915.21
7.0.260.0070.00715.38
7.0.250.0000.01415.25
7.0.240.0070.00715.45
7.0.230.0110.00415.56
7.0.220.0000.01015.42
7.0.210.0040.00815.31
7.0.200.0050.00715.97
7.0.190.0040.01115.43
7.0.180.0060.00715.39
7.0.170.0070.00715.51
7.0.160.0070.00715.55
7.0.150.0000.00915.55
7.0.140.0040.00715.07
7.0.130.0090.00615.27
7.0.120.0070.00315.49
7.0.110.0040.01115.22
7.0.100.0090.00615.43
7.0.90.0060.00615.59
7.0.80.0070.00715.46
7.0.70.0030.01415.33
7.0.60.0100.04317.57
7.0.50.0080.03216.50
7.0.40.0100.03516.70
7.0.30.0180.04616.74
7.0.20.0180.02516.79
7.0.10.0090.04416.72
7.0.00.0070.03916.80
5.6.400.0110.00314.29
5.6.390.0060.00314.29
5.6.380.0090.00314.28
5.6.370.0030.01013.97
5.6.360.0030.00714.12
5.6.350.0040.01114.20
5.6.340.0030.01414.41
5.6.330.0070.00713.75
5.6.320.0000.01314.29
5.6.310.0070.00714.34
5.6.300.0090.00614.20
5.6.290.0030.01314.27
5.6.280.0040.01114.06
5.6.270.0030.01313.89
5.6.260.0070.00713.88
5.6.250.0060.00613.86
5.6.240.0080.00614.24
5.6.230.0070.00714.06
5.6.220.0070.00714.10
5.6.210.0050.04617.26
5.6.200.0080.04316.21
5.6.190.0070.02317.30
5.6.180.0220.03717.15
5.6.170.0150.04017.26
5.6.160.0020.04417.47
5.6.150.0070.04316.14
5.6.140.0050.04116.17
5.6.130.0020.04116.04
5.6.120.0040.04717.44
5.6.110.0100.04017.69
5.6.100.0110.03817.45
5.6.90.0020.05017.52
5.6.80.0030.03917.22
5.6.70.0060.00614.28
5.6.60.0130.00314.00
5.6.50.0030.00914.27
5.6.40.0050.00514.08
5.6.30.0040.01213.95
5.6.20.0030.01014.07
5.6.10.0030.00714.06
5.6.00.0040.01113.92
5.5.380.0130.00314.34
5.5.370.0150.00013.81
5.5.360.0040.00813.90
5.5.350.2140.02317.09
5.5.340.0070.02516.08
5.5.330.0020.04917.02
5.5.320.0050.02317.10
5.5.310.0150.04817.30
5.5.300.0050.02315.90
5.5.290.0090.03015.93
5.5.280.0080.02017.36
5.5.270.0060.02017.45
5.5.260.0110.02317.39
5.5.250.0040.02617.28
5.5.240.0060.04317.18
5.5.230.0030.01314.16
5.5.220.0100.00313.65
5.5.210.0070.00313.77
5.5.200.0060.00813.94
5.5.190.0040.00413.62
5.5.180.0000.00814.26
5.5.170.0070.00714.19
5.5.160.0040.01113.93
5.5.150.0030.01314.14
5.5.140.0070.01013.80
5.5.130.0110.00414.09
5.5.120.0110.00313.73
5.5.110.0150.00313.95
5.5.100.0120.00314.00
5.5.90.0120.00313.87
5.5.80.0060.01013.76
5.5.70.0030.01014.00
5.5.60.0030.01313.81
5.5.50.0030.01213.73
5.5.40.0070.01014.04
5.5.30.0060.01013.92
5.5.20.0060.00614.02
5.5.10.0040.01114.02
5.5.00.0040.01113.73
5.4.450.0420.04015.19
5.4.440.0450.02515.21
5.4.430.0320.03415.11
5.4.420.0370.04315.16
5.4.410.0420.02915.15
5.4.400.0430.02315.04
5.4.390.0370.02714.98
5.4.380.0370.03015.03
5.4.370.0490.02614.83
5.4.360.0470.02814.81
5.4.350.0410.03014.93
5.4.340.0400.03514.78
5.4.330.0000.01310.73
5.4.320.0480.03214.86
5.4.310.0470.03314.90
5.4.300.0380.02514.98
5.4.290.0430.03015.06
5.4.280.0320.03214.96
5.4.270.0360.03114.87
5.4.260.0370.03114.86
5.4.250.0340.03015.03
5.4.240.0340.03215.00
5.4.230.0430.03114.95
5.4.220.0520.02214.80
5.4.210.0480.03114.90
5.4.200.0430.03214.98
5.4.190.0470.02514.97
5.4.180.0430.03015.02
5.4.170.0430.03314.97
5.4.160.0430.02814.77
5.4.150.0430.03114.79
5.4.140.0480.03313.63
5.4.130.0420.02913.47
5.4.120.0470.03013.64
5.4.110.0530.02213.65
5.4.100.0480.02813.53
5.4.90.0420.02713.63
5.4.80.0430.02713.72
5.4.70.0100.01813.71
5.4.60.0130.01813.62
5.4.50.0070.03013.66
5.4.40.0190.03513.57
5.4.30.0120.02313.51
5.4.20.0130.02613.59
5.4.10.0180.03813.62
5.4.00.0060.00310.71

preferences:
71.54 ms | 400 KiB | 5 Q