3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CarPartsTransferObject { public $engine; public $carFrame; function __construct($engine, $carFrame) { $this->engine= $engine; $this->carFrame = $carFrame; } } function getCarParts() { return new CarPartsTransferObject('V8', 'Blue Ford Car Frame'); } $carParts = getCarParts(); echo $carParts->engine, PHP_EOL; echo $carParts->carFrame;

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.70.0110.00718.18
8.3.60.0040.01118.41
8.3.50.0290.00321.11
8.3.40.0060.01018.79
8.3.30.0140.00019.22
8.3.20.0080.00020.16
8.3.10.0040.00423.65
8.3.00.0080.00019.26
8.2.190.0090.00618.41
8.2.180.0110.01116.88
8.2.170.0110.00422.96
8.2.160.0100.01020.22
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0070.00022.11
8.2.110.0100.00019.39
8.2.100.0040.00817.78
8.2.90.0050.00319.70
8.2.80.0040.00418.03
8.2.70.0060.00318.05
8.2.60.0030.00518.03
8.2.50.0030.00618.10
8.2.40.0040.00420.47
8.2.30.0040.00418.07
8.2.20.0000.00817.67
8.2.10.0080.00018.04
8.2.00.0050.00317.68
8.1.280.0100.00725.92
8.1.270.0090.00022.08
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00320.63
8.1.230.0030.00918.98
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00817.10
8.1.190.0070.00417.10
8.1.180.0050.00318.10
8.1.170.0040.00418.66
8.1.160.0070.00021.87
8.1.150.0040.00418.87
8.1.140.0040.00417.45
8.1.130.0030.00317.84
8.1.120.0070.00017.40
8.1.110.0000.00817.45
8.1.100.0070.00017.25
8.1.90.0000.00717.43
8.1.80.0080.00017.30
8.1.70.0040.00417.41
8.1.60.0030.00617.54
8.1.50.0040.00417.36
8.1.40.0000.00817.52
8.1.30.0080.00017.50
8.1.20.0040.00417.59
8.1.10.0000.00717.57
8.1.00.0000.00817.53
8.0.300.0050.00220.08
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0000.00717.19
8.0.260.0060.00017.27
8.0.250.0070.00017.02
8.0.240.0030.00317.02
8.0.230.0070.00016.91
8.0.220.0030.00316.75
8.0.210.0030.00316.80
8.0.200.0000.00716.74
8.0.190.0000.00716.79
8.0.180.0030.00716.73
8.0.170.0040.00416.85
8.0.160.0000.00716.88
8.0.150.0030.00316.65
8.0.140.0030.00516.85
8.0.130.0050.00313.25
8.0.120.0080.00016.78
8.0.110.0080.00016.81
8.0.100.0000.00816.75
8.0.90.0020.00516.84
8.0.80.0090.00616.89
8.0.70.0040.00416.69
8.0.60.0040.00416.88
8.0.50.0040.00416.88
8.0.30.0100.01117.09
8.0.20.0120.00917.40
8.0.10.0080.00017.05
8.0.00.0090.01116.75
7.4.330.0050.00015.02
7.4.320.0030.00816.55
7.4.300.0080.00016.61
7.4.290.0000.00716.59
7.4.280.0070.00316.50
7.4.270.0030.00316.66
7.4.260.0000.00816.60
7.4.250.0040.00416.57
7.4.240.0030.00516.46
7.4.230.0030.00316.42
7.4.220.0090.00916.71
7.4.210.0040.01116.50
7.4.200.0040.00416.26
7.4.160.0080.00816.46
7.4.150.0070.01117.40
7.4.140.0130.00617.86
7.4.130.0070.01316.51
7.4.120.0110.00516.35
7.4.110.0090.00616.61
7.4.100.0120.00816.48
7.4.90.0040.01216.36
7.4.80.0100.00619.39
7.4.70.0100.00716.43
7.4.60.0090.00916.59
7.4.50.0080.00016.52
7.4.40.0130.00616.46
7.4.30.0070.01016.51
7.4.00.0080.00814.80
7.3.330.0030.00313.25
7.3.320.0030.00413.13
7.3.310.0050.00216.20
7.3.300.0000.00616.23
7.3.290.0050.01216.29
7.3.280.0050.00916.29
7.3.270.0160.00617.40
7.3.260.0090.00916.63
7.3.250.0080.00916.53
7.3.240.0040.01316.50
7.3.230.0150.00716.52
7.3.210.0080.00816.52
7.3.200.0060.01619.39
7.3.190.0070.01016.50
7.3.180.0090.00916.38
7.3.170.0100.00716.34
7.3.160.0120.00916.43
7.3.120.0000.01814.88
7.3.110.0060.01014.89
7.3.100.0040.01014.82
7.3.90.0060.00314.55
7.3.80.0070.00414.47
7.3.70.0040.01514.80
7.3.60.0120.00014.85
7.3.50.0070.00714.93
7.3.40.0040.00714.63
7.3.30.0040.01114.58
7.3.20.0100.00316.61
7.3.10.0030.01216.46
7.3.00.0030.01316.55
7.2.330.0140.00316.48
7.2.320.0070.01516.84
7.2.310.0030.01416.53
7.2.300.0130.00316.53
7.2.290.0070.01416.84
7.2.250.0100.00715.30
7.2.240.0030.01714.85
7.2.230.0100.00314.95
7.2.220.0120.00315.08
7.2.210.0000.01114.86
7.2.200.0040.00814.81
7.2.190.0000.01214.95
7.2.180.0030.01314.89
7.2.170.0080.00815.00
7.2.00.0030.01019.21
7.1.330.0150.00015.75
7.1.320.0060.01215.76
7.1.310.0000.00915.62
7.1.300.0040.00715.40
7.1.290.0040.01115.48
7.1.280.0030.01015.67
7.1.270.0060.01015.80
7.1.260.0000.00915.62
7.1.100.0000.01117.61
7.1.70.0000.00717.07
7.1.60.0120.01219.11
7.1.50.0090.01216.83
7.1.00.0000.08022.32
7.0.200.0040.00416.46
7.0.140.0100.06322.18
7.0.60.0130.04719.79
7.0.50.0100.04317.91
7.0.40.0070.07320.04
7.0.30.0230.07720.45
7.0.20.0300.05020.06
7.0.10.0170.04320.22
7.0.00.0230.07320.06
5.6.280.0070.07021.08
5.6.210.0070.05320.73
5.6.200.0170.06018.19
5.6.190.0030.05320.52
5.6.180.0300.05720.34
5.6.170.0270.04720.53
5.6.160.0100.08320.54
5.6.150.0030.04018.15
5.6.140.0030.04018.21
5.6.130.0100.08018.28
5.6.120.0070.07320.90
5.6.110.0170.07320.99
5.6.100.0100.08021.04
5.6.90.0070.07321.00
5.6.80.0130.07320.41
5.6.70.4530.03320.53
5.5.350.0130.06320.34
5.5.340.0070.03718.07
5.5.330.0100.04020.43
5.5.320.0470.07020.42
5.5.310.0170.04020.21
5.5.300.0130.07317.94
5.5.290.0170.06717.95
5.5.280.0070.03720.89
5.5.270.0100.08020.90
5.5.260.0130.08020.77
5.5.250.0030.07020.69
5.5.240.0230.07320.34
5.4.450.0600.06019.70
5.4.440.0730.05719.18
5.4.430.0730.05319.46
5.4.420.0930.00019.51
5.4.410.0670.00019.50
5.4.400.0830.00019.04
5.4.390.0600.00019.13
5.4.380.0700.00019.12
5.4.370.0600.00019.04
5.4.360.0600.00018.97
5.4.350.0630.00019.12
5.4.340.0070.03312.02
5.4.320.0020.04112.51
5.4.310.0050.03812.50
5.4.300.0050.03612.51
5.4.290.0090.04212.51
5.4.280.0080.03212.40
5.4.270.0050.03712.41
5.4.260.0060.03712.40
5.4.250.0040.04612.40
5.4.240.0070.03412.40
5.4.230.0090.03412.40
5.4.220.0040.03712.39
5.4.210.0040.03612.39
5.4.200.0040.03912.39
5.4.190.0040.04012.39
5.4.180.0040.03712.39
5.4.170.0050.03612.40
5.4.160.0070.03312.39
5.4.150.0040.03712.39
5.4.140.0060.03612.07
5.4.130.0040.03712.07
5.4.120.0070.03312.02
5.4.110.0030.03812.02
5.4.100.0060.03412.02
5.4.90.0070.03512.02
5.4.80.0050.03612.02
5.4.70.0070.03312.01
5.4.60.0050.03712.01
5.4.50.0050.03612.01
5.4.40.0070.03312.00
5.4.30.0060.03512.00
5.4.20.0080.03312.00
5.4.10.0060.03312.00
5.4.00.0040.03711.48
5.3.290.0040.04012.80
5.3.280.0070.03612.71
5.3.270.0050.04112.73
5.3.260.0050.04012.71
5.3.250.0070.04612.72
5.3.240.0070.03712.72
5.3.230.0070.03712.71
5.3.220.0030.04012.68
5.3.210.0070.03712.68
5.3.200.0030.03912.68
5.3.190.0070.03712.68
5.3.180.0030.03912.67
5.3.170.0060.03512.67
5.3.160.0070.03612.67
5.3.150.0060.04112.67
5.3.140.0050.03712.66
5.3.130.0040.04112.66
5.3.120.0030.04112.65
5.3.110.0040.04012.66
5.3.100.0060.03912.12
5.3.90.0050.03712.10
5.3.80.0090.03312.09
5.3.70.0060.03612.09
5.3.60.0020.04012.07
5.3.50.0060.03612.03
5.3.40.0030.03912.03
5.3.30.0060.03611.99
5.3.20.0070.03411.78
5.3.10.0060.03411.73
5.3.00.0090.03211.72
5.2.170.0050.0309.23
5.2.160.0030.0329.23
5.2.150.0040.0319.23
5.2.140.0040.0319.22
5.2.130.0040.0299.18
5.2.120.0070.0269.18
5.2.110.0040.0309.19
5.2.100.0050.0289.18
5.2.90.0030.0319.18
5.2.80.0060.0299.18
5.2.70.0020.0339.18
5.2.60.0080.0409.13
5.2.50.0090.0289.10
5.2.40.0080.0259.08
5.2.30.0070.0279.05
5.2.20.0060.0409.04
5.2.10.0080.0248.95
5.2.00.0040.0308.81
5.1.60.0040.0308.09
5.1.50.0050.0238.08
5.1.40.0040.0248.07
5.1.30.0020.0278.42
5.1.20.0050.0258.44
5.1.10.0050.0248.16
5.1.00.0070.0288.16
5.0.50.0030.0266.64
5.0.40.0040.0206.50
5.0.30.0030.0376.32
5.0.20.0050.0216.28
5.0.10.0020.0216.26
5.0.00.0020.0326.25
4.4.90.0030.0154.78
4.4.80.0080.0094.75
4.4.70.0020.0204.75
4.4.60.0010.0174.75
4.4.50.0030.0164.77
4.4.40.0020.0254.71
4.4.30.0040.0154.76
4.4.20.0020.0164.85
4.4.10.0010.0174.85
4.4.00.0020.0254.76
4.3.110.0040.0134.66
4.3.100.0010.0164.67
4.3.90.0010.0164.64
4.3.80.0010.0284.59
4.3.70.0020.0164.63
4.3.60.0030.0144.63
4.3.50.0050.0144.63
4.3.40.0020.0254.54
4.3.30.0020.0163.30
4.3.20.0020.0213.28
4.3.10.0040.0133.24
4.3.00.0130.0237.15

preferences:
51.83 ms | 401 KiB | 5 Q