3v4l.org

run code in 300+ PHP versions simultaneously
<?php class YourClass { function __construct() { $x = function() { echo __CLASS__; }; $x(); } } class MyClass extends YourClass { function __construct() { parent::__construct(); } } $x = new MyClass();

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.0100.00716.48
8.3.50.0130.00922.99
8.3.40.0070.00718.66
8.3.30.0120.00319.09
8.3.20.0090.00920.25
8.3.10.0040.00423.65
8.3.00.0080.00019.26
8.2.180.0120.00916.63
8.2.170.0080.00822.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0070.00720.69
8.2.110.0000.00922.20
8.2.100.0090.00317.66
8.2.90.0090.00019.26
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0060.00317.80
8.2.50.0060.00318.07
8.2.40.0000.00918.16
8.2.30.0000.00718.10
8.2.20.0000.00817.59
8.2.10.0040.00417.93
8.2.00.0040.00417.60
8.1.280.0110.00425.92
8.1.270.0000.00823.84
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00423.77
8.1.230.0040.00719.10
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0030.00617.21
8.1.190.0000.00917.25
8.1.180.0040.00418.10
8.1.170.0080.00018.56
8.1.160.0070.00021.92
8.1.150.0040.00418.89
8.1.140.0070.00017.32
8.1.130.0030.00317.77
8.1.120.0030.00717.37
8.1.110.0060.00317.49
8.1.100.0000.00717.40
8.1.90.0050.00317.34
8.1.80.0000.00717.36
8.1.70.0070.00017.33
8.1.60.0000.00817.47
8.1.50.0000.00817.46
8.1.40.0050.00317.46
8.1.30.0040.00417.62
8.1.20.0000.00717.71
8.1.10.0050.00217.48
8.1.00.0030.00517.52
8.0.300.0070.00018.77
8.0.290.0050.00716.58
8.0.280.0030.00318.48
8.0.270.0030.00317.24
8.0.260.0040.00417.32
8.0.250.0040.00416.85
8.0.240.0000.00616.86
8.0.230.0060.00016.77
8.0.220.0030.00316.79
8.0.210.0070.00016.80
8.0.200.0060.00016.89
8.0.190.0050.00316.98
8.0.180.0040.00716.91
8.0.170.0020.00516.80
8.0.160.0000.00716.96
8.0.150.0030.00516.86
8.0.140.0000.00716.92
8.0.130.0050.00513.24
8.0.120.0050.00316.74
8.0.110.0040.00416.86
8.0.100.0070.00016.66
8.0.90.0000.00716.84
8.0.80.0070.00816.92
8.0.70.0000.00816.73
8.0.60.0000.00716.85
8.0.50.0000.00716.94
8.0.30.0130.00617.14
8.0.20.0110.00817.40
8.0.10.0030.00516.86
8.0.00.0040.01516.77
7.4.330.0050.00015.00
7.4.320.0050.00216.55
7.4.300.0000.00716.49
7.4.290.0040.00316.60
7.4.280.0050.00316.59
7.4.270.0000.00816.62
7.4.260.0000.00716.52
7.4.250.0040.00416.56
7.4.240.0070.00016.52
7.4.230.0030.00316.39
7.4.220.0070.02016.58
7.4.210.0040.00916.52
7.4.200.0000.00716.57
7.4.160.0100.01016.55
7.4.150.0050.01317.40
7.4.140.0080.01017.86
7.4.130.0090.00916.45
7.4.120.0110.00616.56
7.4.110.0030.01316.70
7.4.100.0150.00316.48
7.4.90.0070.01016.54
7.4.80.0100.00619.39
7.4.70.0080.00816.55
7.4.60.0070.01016.64
7.4.50.0040.00416.33
7.4.40.0090.00916.53
7.4.30.0060.01316.58
7.4.00.0030.01014.93
7.3.330.0050.00013.22
7.3.320.0050.00013.37
7.3.310.0030.00316.12
7.3.300.0000.00716.30
7.3.290.0070.00716.28
7.3.280.0110.00816.29
7.3.270.0160.00617.40
7.3.260.0060.01016.23
7.3.250.0080.01316.40
7.3.240.0040.01116.22
7.3.230.0070.01016.58
7.3.210.0030.01416.37
7.3.200.0090.00919.39
7.3.190.0030.01516.34
7.3.180.0060.00916.09
7.3.170.0030.01616.38
7.3.160.0100.00716.50
7.3.10.0090.00616.80
7.3.00.0060.00616.69
7.2.330.0090.00916.77
7.2.320.0100.00616.66
7.2.310.0060.01016.83
7.2.300.0090.00916.34
7.2.290.0000.01716.58
7.2.130.0040.00816.70
7.2.120.0090.00016.98
7.2.110.0080.00417.00
7.2.100.0030.00916.54
7.2.90.0070.00717.15
7.2.80.0090.00616.85
7.2.70.0030.01016.80
7.2.60.0050.00816.86
7.2.50.0090.00616.88
7.2.40.0040.01116.77
7.2.30.0000.01417.15
7.2.20.0070.00717.00
7.2.10.0040.01116.91
7.2.00.0050.01018.22
7.1.250.0060.00615.55
7.1.200.0060.00615.65
7.1.100.0160.00817.92
7.1.70.0050.00517.16
7.1.60.0140.01019.40
7.1.50.0030.01016.93
7.1.00.0000.08022.46
7.0.200.0000.00916.62
7.0.140.0030.07321.98
7.0.60.0030.08020.02
7.0.50.0030.04017.87
7.0.40.0070.05720.23
7.0.30.0170.04020.17
7.0.20.0300.05720.12
7.0.10.0070.04320.09
7.0.00.0100.06720.06
5.6.280.0030.07321.03
5.6.210.0070.05020.68
5.6.200.0000.07318.25
5.6.190.0030.04720.57
5.6.180.0370.06020.61
5.6.170.0230.05320.67
5.6.160.0030.05720.43
5.6.150.0100.09018.21
5.6.140.0070.08018.18
5.6.130.0030.08318.17
5.6.120.0000.05321.00
5.6.110.0100.08021.12
5.6.100.0070.08020.97
5.6.90.0070.08021.14
5.6.80.0100.08020.41
5.5.350.0030.08320.44
5.5.340.0000.04317.99
5.5.330.0130.08020.43
5.5.320.0470.06020.27
5.5.310.0270.05720.51
5.5.300.0100.07718.08
5.5.290.0070.08718.02
5.5.280.0130.07720.69
5.5.270.0170.07320.96
5.5.260.0030.06320.73
5.5.250.0070.08320.72
5.5.240.0100.04320.19
5.4.450.0200.04719.53
5.4.440.0300.04719.48
5.4.430.0270.03719.32
5.4.420.0230.05319.54
5.4.410.0330.03719.41
5.4.400.0300.04018.89
5.4.390.0470.03319.09
5.4.380.0200.06718.75
5.4.370.0270.05318.66
5.4.360.0170.06718.70
5.4.350.0330.04718.61
5.4.340.0470.05318.75
5.4.320.0070.03512.51
5.4.310.0060.03712.50
5.4.300.0040.03712.51
5.4.290.0070.03612.50
5.4.280.0050.03512.39
5.4.270.0070.03412.40
5.4.260.0060.04112.39
5.4.250.0080.03512.40
5.4.240.0060.03412.40
5.4.230.0080.03412.39
5.4.220.0050.03612.39
5.4.210.0050.03512.39
5.4.200.0040.03812.39
5.4.190.0040.03712.38
5.4.180.0070.03312.38
5.4.170.0030.03812.39
5.4.160.0070.03412.39
5.4.150.0050.04612.39
5.4.140.0060.03612.08
5.4.130.0060.03512.07
5.4.120.0050.04212.02
5.4.110.0090.03212.02
5.4.100.0040.03712.02
5.4.90.0030.04212.02
5.4.80.0060.03812.02
5.4.70.0050.03912.02
5.4.60.0070.03312.01
5.4.50.0080.03312.02
5.4.40.0050.03512.00
5.4.30.0070.03312.00
5.4.20.0060.03412.00
5.4.10.0040.03812.00
5.4.00.0050.03711.49
5.3.290.0070.03912.80
5.3.280.0020.04212.70
5.3.270.0060.03912.72
5.3.260.0050.04012.72
5.3.250.0060.04112.72
5.3.240.0060.03712.72
5.3.230.0060.03812.70
5.3.220.0070.03612.68
5.3.210.0070.04812.68
5.3.200.0040.03812.68
5.3.190.0050.03812.68
5.3.180.0090.03412.68
5.3.170.0050.03712.67
5.3.160.0070.03512.67
5.3.150.0060.03812.68
5.3.140.0070.05312.66
5.3.130.0090.03912.66
5.3.120.0040.03912.66
5.3.110.0020.04112.66
5.3.100.0020.04012.12
5.3.90.0060.03512.10
5.3.80.0070.03412.10
5.3.70.0060.03512.10
5.3.60.0060.03512.08
5.3.50.0070.03412.04
5.3.40.0040.03712.04
5.3.30.0050.03611.99
5.3.20.0030.03711.78
5.3.10.0070.03311.73
5.3.00.0060.03511.73
5.2.170.0050.0369.22
5.2.160.0060.0319.21
5.2.150.0050.0309.22
5.2.140.0080.0299.21
5.2.130.0060.0269.18
5.2.120.0030.0439.18
5.2.110.0080.0359.18
5.2.100.0060.0269.18
5.2.90.0040.0299.18
5.2.80.0040.0309.17
5.2.70.0040.0339.17
5.2.60.0050.0299.13
5.2.50.0060.0299.10
5.2.40.0050.0369.08
5.2.30.0060.0299.04
5.2.20.0020.0309.04
5.2.10.0020.0318.95
5.2.00.0020.0318.80
5.1.60.0030.0258.09
5.1.50.0030.0268.09
5.1.40.0040.0248.07
5.1.30.0030.0278.42
5.1.20.0030.0278.44
5.1.10.0040.0258.17
5.1.00.0020.0278.17
5.0.50.0030.0216.64
5.0.40.0050.0176.50
5.0.30.0040.0306.31
5.0.20.0040.0186.28
5.0.10.0040.0196.25
5.0.00.0010.0336.25
4.4.90.0040.0144.78
4.4.80.0030.0144.75
4.4.70.0010.0184.76
4.4.60.0040.0144.75
4.4.50.0040.0144.77
4.4.40.0040.0244.71
4.4.30.0030.0204.76
4.4.20.0030.0154.84
4.4.10.0040.0144.85
4.4.00.0040.0254.76
4.3.110.0070.0194.67
4.3.100.0010.0164.66
4.3.90.0030.0144.63
4.3.80.0040.0224.58
4.3.70.0050.0124.63
4.3.60.0050.0124.63
4.3.50.0040.0144.63
4.3.40.0020.0244.53
4.3.30.0000.0183.30
4.3.20.0050.0133.28
4.3.10.0030.0143.24
4.3.00.0000.02016.03

preferences:
48.91 ms | 401 KiB | 5 Q