3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public $foo; public function __construct($foo) { $this->foo = $foo; } public function __toString() { return "{$this->foo}"; } } $testClass = new TestClass(18); print $testClass;

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.00918.31
8.3.50.0130.00621.99
8.3.40.0070.00718.84
8.3.30.0080.00619.04
8.3.20.0040.00420.29
8.3.10.0140.00021.59
8.3.00.0000.00819.38
8.2.180.0180.00418.29
8.2.170.0060.00922.96
8.2.160.0130.00320.48
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00419.77
8.2.110.0030.00722.11
8.2.100.0090.00317.72
8.2.90.0040.00417.63
8.2.80.0030.00618.93
8.2.70.0000.00817.63
8.2.60.0000.00817.50
8.2.50.0050.00317.91
8.2.40.0080.00019.66
8.2.30.0050.00218.05
8.2.20.0030.00517.55
8.2.10.0020.00518.15
8.2.00.0040.00417.67
8.1.280.0070.01125.92
8.1.270.0080.00018.78
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00619.26
8.1.230.0040.00821.04
8.1.220.0080.00018.77
8.1.210.0060.00318.77
8.1.200.0040.00417.11
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0030.00517.62
8.1.160.0000.00721.85
8.1.150.0000.00818.63
8.1.140.0070.00017.44
8.1.130.0000.00817.79
8.1.120.0000.00717.42
8.1.110.0060.00317.46
8.1.100.0040.00417.34
8.1.90.0040.00417.44
8.1.80.0070.00017.31
8.1.70.0000.00717.45
8.1.60.0040.00417.62
8.1.50.0000.00817.48
8.1.40.0030.00517.57
8.1.30.0040.00417.61
8.1.20.0050.00317.48
8.1.10.0070.00017.49
8.1.00.0040.00417.39
8.0.300.0070.00018.77
8.0.290.0050.00316.75
8.0.280.0040.00318.45
8.0.270.0030.00317.23
8.0.260.0040.00417.13
8.0.250.0030.00316.98
8.0.240.0030.00316.84
8.0.230.0030.00316.83
8.0.220.0030.00316.82
8.0.210.0000.00816.85
8.0.200.0030.00316.91
8.0.190.0070.00016.93
8.0.180.0000.00716.91
8.0.170.0000.00816.90
8.0.160.0030.00516.78
8.0.150.0030.00316.76
8.0.140.0000.00716.69
8.0.130.0000.00513.33
8.0.120.0000.00816.91
8.0.110.0030.00516.93
8.0.100.0000.00716.71
8.0.90.0050.00216.77
8.0.80.0110.01216.87
8.0.70.0050.00316.75
8.0.60.0080.00016.92
8.0.50.0080.00016.83
8.0.30.0090.01716.97
8.0.20.0150.01017.40
8.0.10.0050.00217.07
8.0.00.0070.01016.81
7.4.330.0050.00015.14
7.4.320.0060.00016.42
7.4.300.0030.00316.59
7.4.290.0000.00716.63
7.4.280.0030.00516.64
7.4.270.0040.00416.52
7.4.260.0000.00816.49
7.4.250.0000.00816.56
7.4.240.0050.00416.58
7.4.230.0000.00716.63
7.4.220.0140.00616.56
7.4.210.0080.00816.54
7.4.200.0070.00016.50
7.4.160.0030.01316.26
7.4.150.0140.01117.40
7.4.140.0130.00517.86
7.4.130.0090.01016.49
7.4.120.0110.00816.44
7.4.110.0120.01116.61
7.4.100.0090.00916.60
7.4.90.0070.01016.44
7.4.80.0030.01719.39
7.4.70.0090.00916.48
7.4.60.0100.00616.54
7.4.50.0060.00016.56
7.4.40.0130.01316.43
7.4.30.0070.01016.46
7.4.00.0040.01114.95
7.3.330.0030.00313.29
7.3.320.0060.00613.12
7.3.310.0070.00016.14
7.3.300.0000.00716.31
7.3.290.0000.00616.34
7.3.280.0030.01416.25
7.3.270.0140.00317.40
7.3.260.0080.00816.31
7.3.250.0090.01216.54
7.3.240.0100.00616.33
7.3.230.0170.00016.41
7.3.210.0060.01016.25
7.3.200.0070.01019.39
7.3.190.0070.00716.30
7.3.180.0090.00616.66
7.3.170.0070.01016.28
7.3.160.0160.00016.29
7.3.10.0030.00916.51
7.3.00.0050.00516.62
7.2.330.0000.01716.48
7.2.320.0100.00616.79
7.2.310.0060.01516.73
7.2.300.0110.00816.55
7.2.290.0150.01216.48
7.2.130.0000.01716.78
7.2.120.0060.00617.01
7.2.110.0080.00816.77
7.2.100.0030.00916.60
7.2.90.0080.00816.78
7.2.80.0080.00516.90
7.2.70.0060.00917.00
7.2.60.0070.00816.77
7.2.50.0040.00416.80
7.2.40.0030.01017.15
7.2.30.0000.01317.07
7.2.20.0040.00717.08
7.2.10.0060.00617.10
7.2.00.0050.00918.08
7.1.250.0100.00015.75
7.1.200.0000.00915.74
7.1.100.0110.01118.06
7.1.70.0030.01017.12
7.1.60.0070.01819.50
7.1.50.0030.01616.77
7.1.00.0030.07722.48
7.0.200.0040.00716.74
7.0.140.0030.06022.21
7.0.60.0030.08019.90
7.0.50.0030.07017.94
7.0.40.0170.07320.10
7.0.30.0370.05320.30
7.0.20.0170.04320.12
7.0.10.0330.07320.24
7.0.00.0100.05020.07
5.6.210.0130.07320.48
5.6.200.0070.07718.19
5.6.190.0000.04720.62
5.6.180.0170.05020.55
5.6.170.0230.05020.72
5.6.160.0170.06720.47
5.6.150.0030.07718.22
5.6.140.0070.04018.11
5.6.130.0070.08318.23
5.6.120.0070.08021.02
5.6.110.0100.08020.97
5.6.100.0000.08721.01
5.6.90.0130.04321.08
5.6.80.0070.03720.39
5.6.70.0170.06320.42
5.5.350.0100.07020.45
5.5.340.0030.08718.01
5.5.330.0100.05320.21
5.5.320.0070.08020.19
5.5.310.0230.04720.30
5.5.300.0030.06717.98
5.5.290.0030.04017.95
5.5.280.0100.07720.88
5.5.270.0100.06320.84
5.5.260.0070.08320.76
5.5.250.0030.04020.57
5.5.240.0100.07720.20
5.4.450.0100.07319.70
5.4.440.0930.05319.18
5.4.430.0930.07319.30
5.4.420.1330.06019.61
5.4.410.0230.06019.45
5.4.400.0830.05718.70
5.4.390.0870.04318.80
5.4.380.1000.07018.55
5.4.370.0770.06018.54
5.4.360.0970.05018.69
5.4.350.0830.05718.44
5.4.340.0900.04718.50
5.4.320.0900.06318.54
5.4.310.0900.05018.57
5.4.300.0800.05318.77
5.4.290.0770.06318.72
5.4.280.0870.05318.77
5.4.270.0770.05718.68
5.4.260.0900.05318.77
5.4.250.0870.05718.54
5.4.240.1070.06718.73
5.4.230.0770.06018.67
5.4.220.0930.04318.45
5.4.210.0930.08018.70
5.4.200.0900.05016.61
5.4.190.0770.05718.48
5.4.180.1000.04018.45
5.4.170.0800.05718.79
5.4.160.0830.06318.74
5.4.150.0730.06018.44
5.4.140.0830.04716.27
5.4.130.0730.05716.20
5.4.120.0730.05716.26
5.4.110.0670.06016.18
5.4.100.0770.05716.19
5.4.90.0830.04716.49
5.4.80.0800.04716.39
5.4.70.0830.04316.11
5.4.60.0800.05016.28
5.4.50.0770.05016.28
5.4.40.0770.05016.38
5.4.30.0870.04016.14
5.4.20.0900.05716.26
5.4.10.0830.04316.22
5.4.00.0730.05315.71
5.3.290.0770.06014.68
5.3.280.0800.05314.60
5.3.270.0800.05014.63
5.3.260.0830.05714.68
5.3.250.1030.04714.78
5.3.240.0870.04714.71
5.3.230.0770.06314.78
5.3.220.0870.04714.59
5.3.210.0900.04714.57
5.3.200.0800.05314.66
5.3.190.0900.04714.64
5.3.180.0700.05714.61
5.3.170.0700.05714.55
5.3.160.0730.05314.60
5.3.150.0800.04714.76
5.3.140.0800.04714.59
5.3.130.0870.05314.75
5.3.120.0830.05714.60
5.3.110.0770.05714.64
5.3.100.0700.05714.21
5.3.90.0770.05014.12
5.3.80.0830.04714.02
5.3.70.0730.05014.06
5.3.60.0670.06014.00
5.3.50.0870.04713.99
5.3.40.0870.05013.96
5.3.30.0800.05313.96
5.3.20.0800.05313.79
5.3.10.0800.04713.75
5.3.00.0770.05713.70
5.2.170.0670.05311.14
5.2.160.1030.05711.20
5.2.150.0730.04011.13
5.2.140.0770.04311.14
5.2.130.0970.05311.12
5.2.120.0870.04711.20
5.2.110.0800.05711.11
5.2.100.0800.05311.09
5.2.90.0870.03311.16
5.2.80.0700.04711.20
5.2.70.0700.04011.20
5.2.60.0670.04711.10
5.2.50.0770.05011.07
5.2.40.0500.04311.19
5.2.30.0500.04711.16
5.2.20.0500.05011.05
5.2.10.0700.04310.89
5.2.00.0570.04710.71
5.1.60.0600.0339.98
5.1.50.0570.03310.00
5.1.40.0530.04310.00
5.1.30.0570.03310.34
5.1.20.0600.03010.38
5.1.10.0500.04010.24
5.1.00.0470.04710.17
5.0.50.0270.0308.54
5.0.40.0170.0208.45
5.0.30.0070.0438.43
5.0.20.0100.0208.25
5.0.10.0130.0238.18
5.0.00.0000.0478.16
4.4.90.0070.0205.94
4.4.80.0130.0235.92
4.4.70.0070.0275.91
4.4.60.0030.0235.91
4.4.50.0030.0335.90
4.4.40.0070.0335.87
4.4.30.0070.0205.87
4.4.20.0070.0305.93
4.4.10.0030.0276.02
4.4.00.0030.0375.93
4.3.110.0000.0305.82
4.3.100.0130.0135.89
4.3.90.0070.0205.77
4.3.80.0000.0405.79
4.3.70.0100.0205.90
4.3.60.0170.0105.86
4.3.50.0070.0235.77
4.3.40.0130.0275.79
4.3.30.0030.0234.57
4.3.20.0070.0274.53
4.3.10.0100.0274.51
4.3.00.0030.0236.88

preferences:
47.61 ms | 401 KiB | 5 Q