3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function foo($fooVar) { echo 'Foo: '.$fooVar; } } class Bar extends Foo { public function foo($fooVar) { echo 'Bar: '.$fooVar; parent::foo($fooVar); } } $Bar = new Bar(); $Bar->foo('some value');

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.01018.43
8.3.50.0090.00717.47
8.3.40.0040.01118.76
8.3.30.0120.00318.42
8.3.20.0040.00418.60
8.3.10.0140.00320.36
8.3.00.0040.00419.25
8.2.180.0140.00416.38
8.2.170.0150.00322.96
8.2.160.0070.00722.26
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0050.00526.16
8.2.120.0000.00719.85
8.2.110.0060.00320.97
8.2.100.0040.00717.71
8.2.90.0000.00919.18
8.2.80.0040.00417.93
8.2.70.0080.00017.50
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0040.00419.95
8.2.30.0070.00417.98
8.2.20.0050.00217.70
8.2.10.0000.00717.65
8.2.00.0070.00017.54
8.1.280.0110.00325.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0090.00022.65
8.1.230.0110.00020.88
8.1.220.0000.00817.74
8.1.210.0060.00318.84
8.1.200.0030.00617.47
8.1.190.0070.00017.40
8.1.180.0080.00018.10
8.1.170.0000.00818.81
8.1.160.0000.00718.68
8.1.150.0050.00318.57
8.1.140.0040.00417.43
8.1.130.0070.00017.73
8.1.120.0000.00817.45
8.1.110.0000.00817.42
8.1.100.0000.00717.40
8.1.90.0030.00317.45
8.1.80.0040.00417.29
8.1.70.0060.00317.36
8.1.60.0000.00717.59
8.1.50.0040.00417.37
8.1.40.0040.00417.49
8.1.30.0020.00517.65
8.1.20.0090.00017.57
8.1.10.0040.00417.59
8.1.00.0040.00417.36
8.0.300.0000.00719.98
8.0.290.0000.00716.75
8.0.280.0000.00718.34
8.0.270.0030.00317.18
8.0.260.0030.00318.53
8.0.250.0000.00716.95
8.0.240.0060.00316.94
8.0.230.0050.00216.98
8.0.220.0070.00016.80
8.0.210.0040.00416.92
8.0.200.0000.00616.98
8.0.190.0030.00316.87
8.0.180.0000.00716.93
8.0.170.0060.00316.93
8.0.160.0030.00516.84
8.0.150.0000.00816.92
8.0.140.0060.00316.80
8.0.130.0030.00313.22
8.0.120.0000.00716.73
8.0.110.0040.00416.70
8.0.100.0040.00416.70
8.0.90.0050.00316.73
8.0.80.0060.00916.80
8.0.70.0040.00416.86
8.0.60.0000.00716.93
8.0.50.0000.00716.73
8.0.30.0100.00817.16
8.0.20.0110.00817.40
8.0.10.0030.00516.96
8.0.00.0110.00916.57
7.4.330.0000.00513.43
7.4.320.0060.00016.39
7.4.300.0000.00616.33
7.4.290.0030.00316.48
7.4.280.0000.00716.33
7.4.270.0030.00316.52
7.4.260.0030.00313.14
7.4.250.0030.00516.43
7.4.240.0030.00316.55
7.4.230.0070.00016.26
7.4.220.0130.00616.61
7.4.210.0060.00816.44
7.4.200.0030.00316.38
7.4.190.0000.00716.50
7.4.160.0090.00616.56
7.4.150.0140.00717.40
7.4.140.0170.00517.18
7.4.130.0020.01516.41
7.4.120.0110.00516.50
7.4.110.0120.00916.43
7.4.100.0100.00716.66
7.4.90.0110.01116.36
7.4.80.0070.01018.80
7.4.70.0140.00316.52
7.4.60.0090.00616.41
7.4.50.0030.00616.39
7.4.40.0080.00722.27
7.4.30.0090.00616.32
7.4.00.0120.00314.89
7.3.330.0060.00013.36
7.3.320.0050.00013.10
7.3.310.0070.00016.18
7.3.300.0030.00316.21
7.3.290.0100.00716.34
7.3.280.0060.00916.35
7.3.270.0060.01017.40
7.3.260.0130.00618.24
7.3.250.0110.00916.51
7.3.240.0100.01116.40
7.3.230.0090.00916.42
7.3.210.0140.00616.43
7.3.200.0130.00719.39
7.3.190.0120.00616.32
7.3.180.0100.00716.31
7.3.170.0140.00316.55
7.3.160.0090.00616.59
7.3.120.0060.01014.52
7.3.00.0070.00316.34
7.2.330.0130.00716.48
7.2.320.0090.00916.56
7.2.310.0100.01016.49
7.2.300.0030.01516.50
7.2.290.0080.00816.29
7.2.130.0000.01116.59
7.2.120.0090.00616.72
7.2.110.0040.00416.49
7.2.100.0000.01416.75
7.2.90.0040.00816.84
7.2.80.0000.01416.73
7.2.70.0080.00416.49
7.2.60.0030.00816.62
7.2.50.0080.00416.90
7.2.40.0030.00616.50
7.2.30.0000.01216.83
7.2.20.0030.00916.90
7.2.10.0030.00916.81
7.2.00.0030.01117.96
7.1.250.0030.00915.51
7.1.240.0000.01215.63
7.1.230.0030.00915.41
7.1.220.0030.00715.62
7.1.210.0070.00715.71
7.1.200.0080.00515.43
7.1.190.0070.00415.70
7.1.180.0080.00715.37
7.1.170.0000.01115.78
7.1.160.0000.01115.71
7.1.150.0100.00315.59
7.1.140.0000.00815.74
7.1.130.0040.00415.61
7.1.120.0060.00615.27
7.1.110.0100.00715.38
7.1.100.0030.00716.50
7.1.90.0070.00715.52
7.1.80.0060.00615.79
7.1.70.0030.00816.33
7.1.60.0130.00517.55
7.1.50.0050.01316.19
7.1.40.0030.00915.66
7.1.30.0100.00015.39
7.1.20.0070.00315.71
7.1.10.0090.00615.65
7.1.00.0040.03018.95
7.0.330.0040.00415.31
7.0.320.0060.00315.21
7.0.310.0060.00615.30
7.0.300.0030.00915.29
7.0.290.0000.01115.41
7.0.280.0000.01015.45
7.0.270.0050.00515.33
7.0.260.0070.00715.57
7.0.250.0120.00015.41
7.0.240.0000.00915.43
7.0.230.0060.00915.44
7.0.220.0030.01015.41
7.0.210.0070.00715.59
7.0.200.0000.01216.08
7.0.190.0030.01015.21
7.0.180.0070.00715.56
7.0.170.0080.00015.52
7.0.160.0060.00915.21
7.0.150.0050.00515.63
7.0.140.0050.04018.71
7.0.130.0030.00715.42
7.0.120.0080.00815.47
7.0.110.0080.00815.43
7.0.100.0040.00415.34
7.0.90.0060.00915.33
7.0.80.0000.01415.31
7.0.70.0060.00615.03
7.0.60.0070.04817.71
7.0.50.0070.02316.56
7.0.40.0030.02315.59
7.0.30.0080.02515.54
7.0.20.0000.02615.66
7.0.10.0010.02415.62
7.0.00.0040.02415.60
5.6.380.0000.01014.31
5.6.370.0030.00714.34
5.6.360.0060.00914.49
5.6.350.0040.01114.34
5.6.340.0030.01014.51
5.6.330.0000.01414.29
5.6.320.0040.01114.49
5.6.310.0090.00614.30
5.6.300.0070.00714.42
5.6.290.0000.00814.11
5.6.280.0020.04217.59
5.6.270.0030.00613.98
5.6.260.0110.00414.18
5.6.250.0090.00314.35
5.6.240.0040.00714.52
5.6.230.0070.00414.48
5.6.220.0100.00314.44
5.6.210.0050.04617.43
5.6.200.0030.02516.35
5.6.190.0000.03116.25
5.6.180.0070.02516.27
5.6.170.0000.02716.16
5.6.160.0020.03016.25
5.6.150.0030.02516.13
5.6.140.0070.02016.27
5.6.130.0030.02416.21
5.6.120.0040.03616.18
5.6.110.0060.02116.31
5.6.100.0080.02216.07
5.6.90.0070.04416.30
5.6.80.0130.03115.97
5.6.70.0050.04015.90
5.6.60.0110.02615.99
5.6.50.0070.04215.87
5.6.40.0050.03315.89
5.6.30.0020.02615.77
5.6.20.0050.04515.92
5.6.10.0070.04415.93
5.6.00.0100.03815.83
5.5.380.0090.00311.18
5.5.370.0050.00511.41
5.5.360.0080.00011.18
5.5.350.0080.02015.72
5.5.340.0100.01514.66
5.5.330.0000.02514.58
5.5.320.0060.01814.58
5.5.310.0020.02314.58
5.5.300.0040.02314.57
5.5.290.0040.02814.58
5.5.280.0030.04014.58
5.5.270.0080.03814.54
5.5.260.0060.04514.61
5.5.250.0030.03814.50
5.5.240.0030.04314.33
5.5.230.0050.03014.36
5.5.220.0100.03814.27
5.5.210.0050.03014.25
5.5.200.0050.04514.26
5.5.190.0030.04014.24
5.5.180.0040.04314.23
5.5.170.0030.00311.18
5.5.160.0000.02714.30
5.5.150.0080.03814.24
5.5.140.0100.03814.30
5.5.130.0030.03814.28
5.5.120.0050.04314.22
5.5.110.0080.04114.22
5.5.100.0050.04014.21
5.5.90.0050.04014.25
5.5.80.0030.04014.18
5.5.70.0130.03514.24
5.5.60.0050.02814.18
5.5.50.0020.04214.22
5.5.40.0060.03914.19
5.5.30.0080.03114.20
5.5.20.0090.02514.28
5.5.10.0030.03714.19
5.5.00.0130.03514.17
5.4.450.0050.03515.28
5.4.440.0070.03515.29
5.4.430.0080.04115.38
5.4.420.0000.04515.29
5.4.410.0100.03715.18
5.4.400.0080.03915.11
5.4.390.0080.03815.21
5.4.380.0060.04015.12
5.4.370.0040.02215.14
5.4.360.0040.04415.08
5.4.350.0030.03515.09
5.4.340.0020.04615.12
5.4.330.0080.00311.18
5.4.320.0030.04015.15
5.4.310.0050.04115.06
5.4.300.0040.04315.13
5.4.290.0070.03715.21
5.4.280.0100.03515.12
5.4.270.0040.02915.11
5.4.260.0020.04315.11
5.4.250.0070.04015.11
5.4.240.0070.03615.11
5.4.230.0070.03515.16
5.4.220.0040.03715.07
5.4.210.0030.03915.09
5.4.200.0030.02215.22
5.4.190.0070.03915.10
5.4.180.0070.02715.22
5.4.170.0060.02715.11
5.4.160.0030.04315.10
5.4.150.0090.04115.09
5.4.140.0100.03813.86
5.4.130.0050.02513.85
5.4.120.0080.03813.76
5.4.110.0120.03613.73
5.4.100.0030.02313.78
5.4.90.0060.03813.86
5.4.80.0070.03913.82
5.4.70.0040.04013.76
5.4.60.0060.02813.78
5.4.50.0090.02813.77
5.4.40.0120.03513.84
5.4.30.0020.04213.73
5.4.20.0050.04213.81
5.4.10.0070.03813.81
5.4.00.0030.02713.51
5.3.290.0080.04012.92
5.3.280.0030.02512.90
5.3.270.0040.02612.89
5.3.260.0030.04012.89
5.3.250.0060.04012.91
5.3.240.0050.04312.88
5.3.230.0080.02012.91
5.3.220.0070.02912.91
5.3.210.0040.04112.90
5.3.200.0000.03112.89
5.3.190.0060.02512.85
5.3.180.0030.03912.85
5.3.170.0050.03112.90
5.3.160.0050.02012.90
5.3.150.0070.03912.88
5.3.140.0070.02312.89
5.3.130.0060.04312.87
5.3.120.0050.03012.85
5.3.110.0030.02812.88
5.3.100.0020.02212.63
5.3.90.0050.03612.57
5.3.80.0020.03412.64
5.3.70.0070.03812.54
5.3.60.0050.04112.59
5.3.50.0110.03412.56
5.3.40.0070.02712.56
5.3.30.0070.02512.50
5.3.20.0080.03612.49
5.3.10.0070.03512.41
5.3.00.0070.03812.42
5.2.170.0020.03211.19
5.2.160.0020.03511.27
5.2.150.0030.02811.16
5.2.140.0080.02011.16
5.2.130.0050.03211.13
5.2.120.0130.02811.09
5.2.110.0030.03111.18
5.2.100.0030.03411.14
5.2.90.0070.03011.16
5.2.80.0050.03311.08
5.2.70.0080.02311.16
5.2.60.0050.02811.22
5.2.50.0050.02811.11
5.2.40.0050.02011.08
5.2.30.0050.02511.11
5.2.20.0050.03511.02
5.2.10.0050.03211.04
5.2.00.0060.03311.05
5.1.60.0070.02310.59
5.1.50.0030.01610.56
5.1.40.0050.01310.56
5.1.30.0020.01610.87
5.1.20.0080.02810.69
5.1.10.0030.02410.65
5.1.00.0050.01810.61
5.0.50.0020.0229.82
5.0.40.0040.0139.78
5.0.30.0050.0279.69
5.0.20.0020.0189.73
5.0.10.0030.0239.71
5.0.00.0030.0329.70
4.4.90.0020.0109.54
4.4.80.0040.0189.54
4.4.70.0040.0209.54
4.4.60.0000.0219.54
4.4.50.0000.0209.54
4.4.40.0020.0169.54
4.4.30.0030.0129.54
4.4.20.0020.0229.54
4.4.10.0000.0159.54
4.4.00.0010.0189.54
4.3.110.0010.0139.54
4.3.100.0000.0129.54
4.3.90.0050.0199.54
4.3.80.0030.0289.54
4.3.70.0020.0159.54
4.3.60.0020.0129.54
4.3.50.0020.0159.54
4.3.40.0010.0289.54
4.3.30.0030.0209.54
4.3.20.0000.0219.54
4.3.10.0040.0159.54
4.3.00.0010.0219.54

preferences:
35.14 ms | 401 KiB | 5 Q