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 (string)$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.0140.00718.55
8.3.50.0090.01022.18
8.3.40.0150.00018.89
8.3.30.0110.00419.09
8.3.20.0040.00420.21
8.3.10.0080.00021.79
8.3.00.0050.00319.38
8.2.180.0140.00716.50
8.2.170.0040.01122.96
8.2.160.0100.00720.35
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.76
8.2.110.0090.00019.12
8.2.100.0090.00317.75
8.2.90.0040.00419.05
8.2.80.0030.00517.97
8.2.70.0030.00717.59
8.2.60.0030.00617.91
8.2.50.0030.00618.07
8.2.40.0000.00919.88
8.2.30.0000.00817.94
8.2.20.0040.00417.57
8.2.10.0000.00717.97
8.2.00.0070.00017.64
8.1.280.0100.01025.92
8.1.270.0060.00318.88
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.10
8.1.230.0040.00717.78
8.1.220.0030.00617.75
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0090.00017.35
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0030.00522.01
8.1.150.0000.00818.78
8.1.140.0000.00817.47
8.1.130.0040.00417.88
8.1.120.0040.00417.42
8.1.110.0040.00417.46
8.1.100.0000.00717.48
8.1.90.0000.00817.46
8.1.80.0050.00317.41
8.1.70.0070.00017.48
8.1.60.0040.00417.60
8.1.50.0040.00417.61
8.1.40.0000.00917.45
8.1.30.0080.00017.53
8.1.20.0000.00717.55
8.1.10.0040.00417.49
8.1.00.0000.00717.41
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.36
8.0.270.0000.00717.30
8.0.260.0000.00717.27
8.0.250.0000.00716.92
8.0.240.0040.00416.86
8.0.230.0000.00716.85
8.0.220.0000.00716.79
8.0.210.0050.00316.95
8.0.200.0030.00316.96
8.0.190.0040.00416.91
8.0.180.0000.00716.90
8.0.170.0050.00316.83
8.0.160.0030.00416.87
8.0.150.0000.00716.88
8.0.140.0040.00416.90
8.0.130.0030.00313.36
8.0.120.0040.00416.89
8.0.110.0070.00016.85
8.0.100.0040.00416.79
8.0.90.0000.00716.99
8.0.80.0070.00916.96
8.0.70.0070.00216.90
8.0.60.0000.00716.70
8.0.50.0080.00016.79
8.0.30.0090.01516.98
8.0.20.0060.01217.40
8.0.10.0070.00016.99
8.0.00.0050.01216.86
7.4.330.0020.00315.03
7.4.320.0020.00516.48
7.4.300.0000.00616.40
7.4.290.0000.00816.51
7.4.280.0050.00216.48
7.4.270.0000.00716.59
7.4.260.0000.00716.48
7.4.250.0000.00716.47
7.4.240.0040.00416.47
7.4.230.0030.00316.68
7.4.220.0110.00716.50
7.4.210.0150.00316.55
7.4.200.0000.00816.30
7.4.160.0090.00616.50
7.4.150.0110.00617.40
7.4.140.0050.01217.86
7.4.130.0110.00916.55
7.4.120.0090.00816.59
7.4.110.0030.02016.50
7.4.100.0100.00716.61
7.4.90.0090.00916.48
7.4.80.0090.00919.39
7.4.70.0030.01416.21
7.4.60.0070.01016.52
7.4.50.0000.00416.43
7.4.40.0070.01016.53
7.4.30.0060.01216.64
7.4.00.0030.01114.83
7.3.330.0000.00613.31
7.3.320.0060.00613.16
7.3.310.0000.00616.19
7.3.300.0000.00616.28
7.3.290.0070.00016.16
7.3.280.0080.01016.26
7.3.270.0070.01017.40
7.3.260.0090.00916.49
7.3.250.0150.00316.39
7.3.240.0060.01216.21
7.3.230.0170.00716.39
7.3.210.0130.00316.26
7.3.200.0150.00619.39
7.3.190.0130.00716.32
7.3.180.0150.00816.30
7.3.170.0150.00616.41
7.3.160.0040.01116.35
7.3.10.0100.00616.50
7.3.00.0090.00616.49
7.2.330.0090.00916.58
7.2.320.0130.00316.77
7.2.310.0130.01016.65
7.2.300.0170.00316.69
7.2.290.0130.00516.86
7.2.130.0070.00816.90
7.2.120.0070.00516.90
7.2.110.0030.00617.01
7.2.100.0050.00716.81
7.2.90.0070.00317.00
7.2.80.0080.00717.08
7.2.70.0080.00316.78
7.2.60.0060.00716.79
7.2.50.0030.00916.85
7.2.40.0050.00716.99
7.2.30.0110.00516.83
7.2.20.0020.01217.14
7.2.10.0130.00416.81
7.2.00.0060.01117.80
7.1.250.0080.00715.44
7.1.240.0000.01415.66
7.1.230.0130.00015.66
7.1.220.0040.00815.75
7.1.210.0090.00015.52
7.1.200.0070.00915.38
7.1.190.0030.01315.58
7.1.180.0070.01115.40
7.1.170.0060.00315.41
7.1.160.0030.01315.47
7.1.150.0060.00615.83
7.1.140.0040.01115.54
7.1.130.0040.00415.52
7.1.120.0080.00815.75
7.1.110.0030.00715.37
7.1.100.0080.00216.79
7.1.90.0000.00915.40
7.1.80.0040.00715.77
7.1.70.0060.00516.35
7.1.60.0050.01317.52
7.1.50.0040.01216.19
7.1.40.0120.00615.24
7.1.30.0110.00315.71
7.1.20.0040.01115.28
7.1.10.0120.00615.50
7.1.00.0050.04018.90
7.0.330.0030.00615.33
7.0.320.0070.00715.22
7.0.310.0030.00914.99
7.0.300.0030.01015.45
7.0.290.0080.00415.33
7.0.280.0000.00815.33
7.0.270.0130.00015.14
7.0.260.0040.00815.25
7.0.250.0030.00915.22
7.0.240.0100.00315.19
7.0.230.0000.00715.15
7.0.220.0080.00815.20
7.0.210.0070.00715.31
7.0.200.0060.00616.02
7.0.190.0090.00615.41
7.0.180.0030.01015.34
7.0.170.0120.00015.34
7.0.160.0080.00415.13
7.0.150.0040.01415.19
7.0.140.0080.03218.78
7.0.130.0070.00415.37
7.0.120.0070.00715.52
7.0.110.0130.00315.26
7.0.100.0050.00315.11
7.0.90.0070.00715.39
7.0.80.0070.00715.32
7.0.70.0000.00815.32
7.0.60.0090.03917.58
7.0.50.0020.04116.68
7.0.40.0030.05016.74
7.0.30.0160.04516.91
7.0.20.0220.03916.83
7.0.10.0120.02216.72
7.0.00.0080.03316.76
5.6.380.0090.00614.52
5.6.370.0030.00914.34
5.6.360.0000.01114.35
5.6.350.0040.00414.52
5.6.340.0070.00714.59
5.6.330.0060.00613.91
5.6.320.0060.01014.23
5.6.310.0080.00414.38
5.6.300.0080.00414.49
5.6.290.0090.00513.89
5.6.280.0060.00614.08
5.6.270.0030.00614.70
5.6.260.0050.00514.49
5.6.250.0030.00614.53
5.6.240.0090.00314.39
5.6.230.0090.00314.15
5.6.220.0040.00414.54
5.6.210.0040.03217.60
5.6.200.0070.03816.18
5.6.190.0070.02217.30
5.6.180.0070.03017.59
5.6.170.0130.02217.29
5.6.160.0060.04317.42
5.6.150.0050.02916.14
5.6.140.0090.04516.28
5.6.130.0050.04116.30
5.6.120.0100.04317.70
5.6.110.0050.03417.70
5.6.100.0050.04717.78
5.6.90.0140.03817.56
5.6.80.0090.03917.20
5.6.70.0070.02717.44
5.6.60.0000.00814.35
5.6.50.0040.00714.00
5.6.40.0070.01014.34
5.6.30.0030.00614.29
5.6.20.0180.00314.18
5.6.10.0110.00614.40
5.6.00.0030.00514.15
5.5.380.0030.00310.89
5.5.370.0070.00011.27
5.5.360.0030.00911.07
5.5.350.0100.03515.89
5.5.340.0020.04514.54
5.5.330.0070.03915.87
5.5.320.0070.02115.88
5.5.310.0180.04215.71
5.5.300.0090.03914.60
5.5.290.0070.04314.71
5.5.280.0070.04515.85
5.5.270.0020.03116.06
5.5.260.0090.03615.88
5.5.250.0050.02015.86
5.5.240.0040.04115.73
5.5.230.0090.00011.25
5.5.220.0080.00411.23
5.5.210.0000.01211.00
5.5.200.0060.00611.20
5.5.190.0030.00710.98
5.5.180.0070.00410.95
5.5.170.0100.00011.06
5.5.160.0040.00811.25
5.5.150.0030.01011.25
5.5.140.0000.01011.27
5.5.130.0100.00311.04
5.5.120.0090.00611.13
5.5.110.0000.00711.34
5.5.100.0050.00311.04
5.5.90.0060.00611.25
5.5.80.0120.00311.41
5.5.70.0040.00411.21
5.5.60.0100.00011.02
5.5.50.0070.00610.98
5.5.40.0030.01011.21
5.5.30.0050.00311.16
5.5.20.0050.00511.25
5.5.10.0000.00811.14
5.5.00.0110.00411.05
5.4.450.0150.03815.41
5.4.440.0080.03515.40
5.4.430.0420.02515.04
5.4.420.0420.02715.33
5.4.410.0100.02714.86
5.4.400.0150.02514.84
5.4.390.0110.03314.94
5.4.380.0120.03314.90
5.4.370.0150.02314.69
5.4.360.0100.03015.00
5.4.350.0070.03514.95
5.4.340.0120.03214.82
5.4.330.0080.00310.82
5.4.320.0120.03214.80
5.4.310.0130.02514.77
5.4.300.0100.03014.76
5.4.290.0100.02814.79
5.4.280.0090.02814.79
5.4.270.0120.02614.78
5.4.260.0160.02514.71
5.4.250.0120.03214.88
5.4.240.0150.02714.89
5.4.230.0090.03214.84
5.4.220.0090.03714.90
5.4.210.0190.03214.89
5.4.200.0120.02713.88
5.4.190.0130.02814.78
5.4.180.0120.02914.94
5.4.170.0160.02714.85
5.4.160.0150.02514.81
5.4.150.0070.03514.84
5.4.140.0100.03013.65
5.4.130.0120.02813.73
5.4.120.0130.02713.74
5.4.110.0100.03213.67
5.4.100.0090.03313.54
5.4.90.0080.03013.78
5.4.80.0050.03313.74
5.4.70.0150.02613.74
5.4.60.0070.03213.50
5.4.50.0170.03113.68
5.4.40.0160.02313.63
5.4.30.0170.02313.68
5.4.20.0150.03713.50
5.4.10.0140.02713.66
5.4.00.0150.02313.39
5.3.290.0070.03312.74
5.3.280.0080.03312.62
5.3.270.0130.03212.65
5.3.260.0110.02812.58
5.3.250.0150.02312.59
5.3.240.0140.02712.59
5.3.230.0140.02912.45
5.3.220.0100.03512.49
5.3.210.0090.03312.55
5.3.200.0110.02812.54
5.3.190.0140.02512.53
5.3.180.0080.03112.61
5.3.170.0150.03812.53
5.3.160.0220.02712.64
5.3.150.0130.03112.58
5.3.140.0120.02712.59
5.3.130.0030.03612.54
5.3.120.0110.02912.39
5.3.110.0130.02512.58
5.3.100.0150.02812.17
5.3.90.0090.03012.28
5.3.80.0150.02512.35
5.3.70.0120.03012.31
5.3.60.0160.02312.31
5.3.50.0080.02812.27
5.3.40.0110.02612.15
5.3.30.0050.03212.20
5.3.20.0110.03112.09
5.3.10.0070.03011.92
5.3.00.0100.02911.98
5.2.170.0080.02510.44
5.2.160.0130.02210.36
5.2.150.0130.01810.33
5.2.140.0080.02510.40
5.2.130.0100.02210.17
5.2.120.0070.02210.38
5.2.110.0080.02110.36
5.2.100.0030.02710.37
5.2.90.0100.02010.23
5.2.80.0130.02010.37
5.2.70.0090.02610.39
5.2.60.0090.02610.18
5.2.50.0110.02210.38
5.2.40.0100.02410.29
5.2.30.0070.02510.23
5.2.20.0050.02610.18
5.2.10.0050.02410.09
5.2.00.0050.0279.91
5.1.60.0090.0209.20
5.1.50.0080.0269.21
5.1.40.0050.0219.31
5.1.30.0050.0249.64
5.1.20.0030.0279.54
5.1.10.0100.0179.37
5.1.00.0070.0219.29
5.0.50.0070.0168.43
5.0.40.0080.0118.37
5.0.30.0100.0208.28
5.0.20.0040.0178.26
5.0.10.0060.0158.30
5.0.00.0050.0248.29
4.4.90.0080.0107.10
4.4.80.0050.0127.13
4.4.70.0020.0137.12
4.4.60.0030.0147.11
4.4.50.0030.0187.13
4.4.40.0040.0187.12
4.4.30.0070.0127.11
4.4.20.0030.0127.13
4.4.10.0020.0137.18
4.4.00.0030.0217.14
4.3.110.0030.0127.11
4.3.100.0060.0127.07
4.3.90.0030.0147.11
4.3.80.0140.0227.12
4.3.70.0080.0137.12
4.3.60.0050.0127.07
4.3.50.0090.0127.06
4.3.40.0030.0207.06
4.3.30.0020.0136.45
4.3.20.0080.0136.43
4.3.10.0030.0136.41
4.3.00.0020.0157.79

preferences:
38.5 ms | 401 KiB | 5 Q