3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function bar() { echo isset($this) ? 'Instance' : 'Class', "\n"; } } // OK: Foo::bar(); class Baz { function test() { Foo::bar(); } } // Take care: $baz = new Baz; $baz->test();

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.4.10.0070.01017.92
8.3.140.0130.00716.55
8.3.130.0070.00416.57
8.3.120.0120.00318.73
8.3.110.0000.00816.75
8.3.100.0070.01424.06
8.3.90.0040.00426.77
8.3.80.0060.00316.50
8.3.70.0030.01716.58
8.3.60.0210.00016.87
8.3.50.0130.00322.05
8.3.40.0070.00718.77
8.3.30.0090.00619.08
8.3.20.0100.00320.32
8.3.10.0040.00423.67
8.3.00.0050.00319.68
8.2.260.0050.00320.71
8.2.250.0040.01516.93
8.2.240.0090.00618.70
8.2.230.0050.00320.94
8.2.220.0050.00337.54
8.2.210.0040.00426.77
8.2.200.0090.00016.75
8.2.190.0040.01116.58
8.2.180.0150.00325.92
8.2.170.0120.00319.00
8.2.160.0130.00622.96
8.2.150.0070.00025.66
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0040.00420.92
8.2.110.0110.00020.43
8.2.100.0190.00218.55
8.2.90.0040.00419.09
8.2.80.0060.00617.97
8.2.70.0000.00817.50
8.2.60.0000.00818.03
8.2.50.0050.00318.07
8.2.40.0060.00318.22
8.2.30.0060.00318.05
8.2.20.0070.00017.61
8.2.10.0030.00617.94
8.2.00.0050.00317.67
8.1.300.0060.00316.10
8.1.290.0080.00418.88
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0220.00019.01
8.1.230.0070.00420.91
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0030.00617.22
8.1.190.0000.00917.23
8.1.180.0000.00818.10
8.1.170.0030.00618.57
8.1.160.0000.00721.98
8.1.150.0040.00418.73
8.1.140.0000.00817.37
8.1.130.0000.00717.71
8.1.120.0040.00417.32
8.1.110.0060.00317.24
8.1.100.0050.00317.33
8.1.90.0040.00417.20
8.1.80.0040.00417.30
8.1.70.0060.00317.18
8.1.60.0060.00317.50
8.1.50.0000.00817.33
8.1.40.0050.00217.42
8.1.30.0050.00317.62
8.1.20.0080.00017.54
8.1.10.0040.00417.43
8.1.00.0040.00417.46
8.0.300.0040.00420.21
8.0.290.0060.00316.75
8.0.280.0040.00418.41
8.0.270.0070.00016.81
8.0.260.0000.00717.11
8.0.250.0030.00316.96
8.0.240.0000.00716.96
8.0.230.0000.00716.84
8.0.220.0020.00516.93
8.0.210.0070.00016.77
8.0.200.0000.00716.96
8.0.190.0040.00416.90
8.0.180.0030.00516.94
8.0.170.0040.00416.95
8.0.160.0050.00316.79
8.0.150.0070.00016.73
8.0.140.0000.00716.75
8.0.130.0000.00613.31
8.0.120.0040.00416.88
8.0.110.0040.00416.91
8.0.100.0060.00316.75
8.0.90.0000.00716.77
8.0.80.0110.01116.94
8.0.70.0070.00016.76
8.0.60.0040.00416.92
8.0.50.0060.00316.75
8.0.30.0070.01217.01
8.0.20.0080.01017.21
8.0.10.0070.01016.93
8.0.00.0100.01116.71
7.4.330.0000.00615.07
7.4.320.0040.00416.33
7.4.300.0040.00416.52
7.4.290.0050.00216.51
7.4.280.0030.00516.43
7.4.270.0070.00016.50
7.4.260.0000.00716.52
7.4.250.0070.00016.58
7.4.240.0050.00316.53
7.4.230.0000.00716.24
7.4.220.0030.01416.44
7.4.210.0060.00916.63
7.4.200.0070.00016.60
7.4.160.0190.00216.52
7.4.150.0120.00716.98
7.4.140.0110.00917.35
7.4.130.0110.00916.41
7.4.120.0090.01216.35
7.4.110.0110.00916.37
7.4.100.0110.00816.36
7.4.90.0080.01216.39
7.4.80.0100.01016.39
7.4.70.0100.01116.46
7.4.60.0090.00916.41
7.4.50.0080.00816.34
7.4.40.0090.00916.28
7.4.30.0090.00916.34
7.4.20.0130.00716.42
7.4.10.0130.00616.47
7.4.00.0090.01016.06
7.3.330.0020.00213.10
7.3.320.0050.00013.37
7.3.310.0030.00316.16
7.3.300.0000.00716.31
7.3.290.0090.00516.27
7.3.280.0100.01016.28
7.3.270.0090.00716.82
7.3.260.0120.00916.29
7.3.250.0140.00616.39
7.3.240.0120.01016.30
7.3.230.0100.01016.32
7.3.220.0080.00916.30
7.3.210.0130.00516.35
7.3.200.0080.00916.27
7.3.190.0090.00916.27
7.3.180.0100.00816.29
7.3.170.0100.00916.30
7.3.160.0100.00716.33
7.3.150.0050.01316.35
7.3.140.0110.00916.27
7.3.130.0090.01016.29
7.3.120.0080.01015.86
7.3.110.0090.00815.99
7.3.100.0110.00716.10
7.3.90.0100.00916.04
7.3.80.0070.01116.10
7.3.70.0080.01016.09
7.3.60.0110.00916.01
7.3.50.0090.00915.86
7.3.40.0100.00815.88
7.3.30.0060.01015.83
7.3.20.0820.01016.17
7.3.10.1010.00616.12
7.3.00.0910.00916.13
7.2.340.0100.01416.56
7.2.330.0170.01016.45
7.2.320.0140.01016.34
7.2.310.0140.00916.46
7.2.300.0130.01016.46
7.2.290.0160.00716.51
7.2.280.0140.01116.47
7.2.270.0140.01016.56
7.2.260.0150.00716.39
7.2.250.0140.01016.20
7.2.240.0150.00916.25
7.2.230.0170.00816.23
7.2.220.0150.00916.22
7.2.210.0130.01016.13
7.2.200.0120.01116.22
7.2.190.0120.01016.30
7.2.180.0110.01116.06
7.2.170.0170.01116.02
7.2.160.0140.00916.06
7.2.150.0990.00716.40
7.2.140.0910.00816.43
7.2.130.0670.00916.40
7.2.120.0780.00916.40
7.2.110.0910.01016.45
7.2.100.0480.00916.48
7.2.90.1280.00716.37
7.2.80.0470.01016.42
7.2.70.0400.01216.41
7.2.60.0710.00916.25
7.2.50.0470.00916.42
7.2.40.0520.00916.37
7.2.30.0470.01016.42
7.2.20.0490.01116.26
7.2.10.0510.00916.28
7.2.00.0210.01016.97
7.1.330.0200.01115.49
7.1.320.0210.01015.74
7.1.310.0190.00715.75
7.1.300.0190.01015.73
7.1.290.0200.00815.78
7.1.280.0180.00915.46
7.1.270.0180.00815.50
7.1.260.0190.00915.39
7.1.250.0700.00915.23
7.1.240.0750.00915.23
7.1.230.0940.00915.24
7.1.220.0840.00915.20
7.1.210.0680.01015.19
7.1.200.0460.00915.24
7.1.190.0460.01015.28
7.1.180.0190.01015.42
7.1.170.0420.00915.28
7.1.160.0580.01015.37
7.1.150.0670.00715.36
7.1.140.0610.00815.34
7.1.130.0650.01115.40
7.1.120.0370.00915.78
7.1.110.0310.01015.74
7.1.100.0390.00915.72
7.1.90.0460.01015.71
7.1.80.0390.00815.75
7.1.70.0370.01015.60
7.1.60.0420.01018.75
7.1.50.0430.00818.59
7.1.40.0390.00918.39
7.1.30.0380.00918.53
7.1.20.0290.01118.53
7.1.10.0380.00815.52
7.1.00.0270.00915.52
7.0.330.0930.00814.91
7.0.320.0620.00914.92
7.0.310.0570.00914.93
7.0.300.0460.00814.92
7.0.290.0750.00715.14
7.0.280.0360.01014.91
7.0.270.0410.00715.26
7.0.260.0340.00915.60
7.0.250.0300.01215.47
7.0.240.0450.01015.47
7.0.230.0420.00915.53
7.0.220.0400.00815.44
7.0.210.0450.00815.27
7.0.200.0390.00815.25
7.0.190.0530.00815.40
7.0.180.0470.01015.12
7.0.170.0320.00715.38
7.0.160.0280.00815.31
7.0.150.0400.00815.35
7.0.140.0290.01115.30
7.0.130.0430.00715.33
7.0.120.0360.00815.50
7.0.110.0470.00715.31
7.0.100.0420.00815.30
7.0.90.0410.01015.31
7.0.80.0420.00815.30
7.0.70.0460.00915.31
7.0.60.0340.01115.28
7.0.50.0390.00815.31
7.0.40.0310.00915.38
7.0.30.0380.00715.30
7.0.20.0460.00815.13
7.0.10.0380.00715.27
7.0.00.0360.00715.23
5.6.400.0170.01115.69
5.6.390.0190.01115.67
5.6.380.0190.01215.52
5.6.370.0200.01115.48
5.6.360.0170.01015.51
5.6.350.0170.01015.53
5.6.340.0200.01015.48
5.6.330.0210.00715.41
5.6.320.0160.01115.53
5.6.310.0150.01315.50
5.6.300.0130.02616.99
5.6.290.0150.02416.90
5.6.280.0140.02716.92
5.6.270.0150.02217.01
5.6.260.0150.02316.92
5.6.250.0150.02316.91
5.6.240.0120.02616.93
5.6.230.0130.02516.92
5.6.220.0170.02316.97
5.6.210.0200.02216.95
5.6.200.0170.02216.95
5.6.190.0170.02716.92
5.6.180.0180.02316.93
5.6.170.0160.02416.81
5.6.160.0170.02516.98
5.6.150.0140.02716.96
5.6.140.0180.02416.98
5.6.130.0170.02216.97
5.6.120.0150.02716.92
5.6.110.0150.02916.95
5.6.100.0190.02416.90
5.6.90.0190.02516.99
5.6.80.0150.02316.65
5.6.70.0160.02316.68
5.6.60.0160.02516.75
5.6.50.0170.02316.68
5.6.40.0160.02116.73
5.6.30.0170.02216.70
5.6.20.0160.02516.68
5.6.10.0170.02516.65
5.6.00.0130.02416.73
5.5.380.0180.01915.70
5.5.370.0150.02415.76
5.5.360.0160.02415.71
5.5.350.0170.02015.72
5.5.340.0150.02115.92
5.5.330.0170.02215.89
5.5.320.0200.02115.77
5.5.310.0190.02215.87
5.5.300.0200.02315.84
5.5.290.0140.02915.90
5.5.280.0170.02315.85
5.5.270.0180.02315.82
5.5.260.0170.02215.73
5.5.250.0170.02415.79
5.5.240.0180.02115.66
5.5.230.0190.02115.66
5.5.220.0150.02415.70
5.5.210.0160.02415.65
5.5.200.0160.02115.58
5.5.190.0160.02215.65
5.5.180.0160.02415.58
5.5.170.0170.01114.99
5.5.160.0160.02215.65
5.5.150.0180.02215.68
5.5.140.0170.02015.60
5.5.130.0140.02415.63
5.5.120.0140.02415.57
5.5.110.0160.02215.52
5.5.100.0160.02115.56
5.5.90.0160.02015.63
5.5.80.0160.02115.63
5.5.70.0160.02215.57
5.5.60.0210.01915.59
5.5.50.0150.02115.53
5.5.40.0160.02115.59
5.5.30.0170.01915.59
5.5.20.0170.02015.62
5.5.10.0140.02215.54
5.5.00.0160.02215.58
5.4.450.0140.01914.27
5.4.440.0140.02014.33
5.4.430.0140.02114.20
5.4.420.0180.02014.24
5.4.410.0140.02014.15
5.4.400.0150.01814.13
5.4.390.0160.02014.09
5.4.380.0160.01714.12
5.4.370.0130.02014.16
5.4.360.0140.02114.16
5.4.350.0150.01914.13
5.4.340.0130.02114.08
5.4.330.0160.00712.31
5.4.320.0140.02014.15
5.4.310.0130.02114.17
5.4.300.0130.01914.18
5.4.290.0150.01714.09
5.4.280.0110.02114.11
5.4.270.0130.01914.15
5.4.260.0120.01814.13
5.4.250.0130.01914.12
5.4.240.0150.01814.14
5.4.230.0140.02014.10
5.4.220.0140.01914.13
5.4.210.0130.02214.10
5.4.200.0130.02014.13
5.4.190.0140.01814.12
5.4.180.0160.01714.08
5.4.170.0120.01914.18
5.4.160.0120.01914.14
5.4.150.0140.01914.06
5.4.140.0130.01813.48
5.4.130.0110.02113.53
5.4.120.0120.01713.47
5.4.110.0110.01813.55
5.4.100.0120.01913.56
5.4.90.0120.01813.52
5.4.80.0120.01913.58
5.4.70.0130.01813.54
5.4.60.0110.01913.51
5.4.50.0110.01913.47
5.4.40.0100.01913.58
5.4.30.0130.01713.51
5.4.20.0140.01713.53
5.4.10.0110.01813.54
5.4.00.0150.01513.43
5.3.290.0130.02113.53
5.3.280.0120.01913.42
5.3.270.0130.02013.47
5.3.260.0140.02013.44
5.3.250.0140.01913.49
5.3.240.0120.02313.35
5.3.230.0120.02013.39
5.3.220.0140.01813.30
5.3.210.0120.01913.36
5.3.200.0120.02013.32
5.3.190.0110.02013.33
5.3.180.0120.01913.48
5.3.170.0120.02013.40
5.3.160.0130.02013.44
5.3.150.0130.01813.45
5.3.140.0130.02113.38
5.3.130.0110.02013.37
5.3.120.0120.01913.38
5.3.110.0150.01913.39
5.3.100.0120.01813.27
5.3.90.0130.01913.30
5.3.80.0110.01813.22
5.3.70.0100.01913.22
5.3.60.0120.01913.27
5.3.50.0120.01913.17
5.3.40.0100.02213.25
5.3.30.0120.02113.32
5.3.20.0110.02013.22
5.3.10.0110.01813.07
5.3.00.0100.02013.08
5.0.50.0030.01111.31
5.0.00.0050.00811.31
4.4.90.0040.00511.31

preferences:
33.81 ms | 403 KiB | 5 Q