3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Car{ public static function a(){ return 'hi'; } } class Constants{ public static $use='Car'; } $trim = 'trim'; echo ${"{Constants::$use}"}::a();

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.40.0120.00918.84
8.3.30.0070.00718.79
8.3.20.0080.00018.85
8.3.10.0040.00420.48
8.3.00.0000.00823.67
8.2.170.0110.00422.96
8.2.160.0070.01120.25
8.2.150.0040.00424.18
8.2.140.0100.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00319.45
8.2.110.0080.00422.21
8.2.100.0080.00417.78
8.2.90.0000.00719.08
8.2.80.0050.00318.04
8.2.70.0090.00017.50
8.2.60.0120.00017.93
8.2.50.0030.00618.07
8.2.40.0000.00818.24
8.2.30.0000.00819.88
8.2.20.0050.00217.71
8.2.10.0040.00417.75
8.2.00.0040.00417.71
8.1.270.0040.00423.99
8.1.260.0100.00726.35
8.1.250.0030.01028.09
8.1.240.0030.00722.55
8.1.230.0110.00020.99
8.1.220.0000.00918.77
8.1.210.0040.00418.82
8.1.200.0080.00017.35
8.1.190.0090.00017.40
8.1.180.0050.00318.10
8.1.170.0030.00618.96
8.1.160.0070.00018.74
8.1.150.0030.00518.57
8.1.140.0000.00717.45
8.1.130.0000.00717.87
8.1.120.0030.00517.38
8.1.110.0030.00417.50
8.1.100.0070.00017.33
8.1.90.0000.00717.46
8.1.80.0040.00417.34
8.1.70.0000.00717.42
8.1.60.0060.00317.54
8.1.50.0070.00017.40
8.1.40.0000.00817.51
8.1.30.0050.00217.55
8.1.20.0090.00017.68
8.1.10.0060.00317.59
8.1.00.0040.00417.48
8.0.300.0000.00719.89
8.0.290.0040.00417.18
8.0.280.0040.00418.36
8.0.270.0080.00017.27
8.0.260.0070.00016.88
8.0.250.0000.00817.06
8.0.240.0070.00217.06
8.0.230.0000.00716.96
8.0.220.0000.00816.82
8.0.210.0030.00316.86
8.0.200.0050.00416.98
8.0.190.0050.00216.90
8.0.180.0000.00716.93
8.0.170.0040.00416.92
8.0.160.0040.00716.96
8.0.150.0000.00916.96
8.0.140.0080.00316.91
8.0.130.0030.00313.41
8.0.120.0030.00616.95
8.0.110.0040.00416.90
8.0.100.0000.00716.76
8.0.90.0000.00816.81
8.0.80.0070.00717.00
8.0.70.0070.00016.97
8.0.60.0000.00816.80
8.0.50.0000.00717.01
8.0.30.0090.01017.03
8.0.20.0100.01017.40
8.0.10.0050.00317.16
8.0.00.0080.01216.95
7.4.330.0000.00514.65
7.4.320.0000.00616.64
7.4.300.0030.00316.59
7.4.290.0000.00716.49
7.4.280.0060.00316.49
7.4.270.0000.00816.64
7.4.260.0000.00613.29
7.4.250.0050.00216.51
7.4.240.0060.00316.52
7.4.230.0000.00816.48
7.4.220.0070.01116.63
7.4.210.0070.01216.51
7.4.200.0000.00816.49
7.4.190.0030.00316.56
7.4.160.0030.01316.54
7.4.150.0080.00917.40
7.4.140.0090.00717.86
7.4.130.0070.01116.55
7.4.120.0080.01016.54
7.4.110.0140.00316.46
7.4.100.0100.00716.52
7.4.90.0120.00616.59
7.4.80.0070.01319.04
7.4.70.0070.01016.61
7.4.60.0080.00916.55
7.4.50.0060.00316.63
7.4.40.0120.00022.27
7.4.30.0130.00316.40
7.4.00.0060.00614.92
7.3.330.0000.00513.23
7.3.320.0000.00513.33
7.3.310.0000.00716.36
7.3.300.0000.00616.21
7.3.290.0040.01116.36
7.3.280.0100.00716.34
7.3.270.0230.00017.40
7.3.260.0190.00218.24
7.3.250.0130.00716.48
7.3.240.0090.00616.62
7.3.230.0070.01016.39
7.3.210.0060.01016.57
7.3.200.0140.00319.39
7.3.190.0210.00016.42
7.3.180.0070.01316.38
7.3.170.0060.00916.45
7.3.160.0060.01016.42
7.3.120.0130.00315.06
7.3.10.0060.00716.67
7.3.00.0080.00516.55
7.2.330.0240.02416.81
7.2.320.0000.02216.68
7.2.310.0130.00616.36
7.2.300.0070.01116.70
7.2.290.0130.00716.74
7.2.130.0040.00716.79
7.2.120.0060.00916.86
7.2.110.0110.00516.87
7.2.100.0050.00916.79
7.2.90.0040.01216.77
7.2.80.0040.00816.70
7.2.70.0040.00816.81
7.2.60.0050.00816.99
7.2.50.0080.00516.79
7.2.40.0060.00916.80
7.2.30.0020.01016.78
7.2.20.0040.00916.83
7.2.10.0060.00816.85
7.2.00.0010.01217.75
7.1.250.0030.00915.71
7.1.240.0030.00615.55
7.1.230.0120.00315.52
7.1.220.0030.00815.59
7.1.210.0040.01115.61
7.1.200.0070.00515.66
7.1.190.0040.00415.72
7.1.180.0090.00315.83
7.1.170.0000.01315.70
7.1.160.0030.01015.58
7.1.150.0030.00615.59
7.1.140.0110.00015.74
7.1.130.0040.00815.71
7.1.120.0000.00715.88
7.1.110.0050.00515.46
7.1.100.0060.00817.08
7.1.90.0090.00615.75
7.1.80.0030.01015.47
7.1.70.0050.00516.39
7.1.60.0070.01017.49
7.1.50.0030.01516.25
7.1.40.0090.00615.54
7.1.30.0030.01015.82
7.1.20.0070.00715.57
7.1.10.0030.01215.42
7.1.00.0030.02719.09
7.0.330.0100.00315.46
7.0.320.0040.01115.28
7.0.310.0080.00315.32
7.0.300.0060.00615.24
7.0.290.0060.01015.32
7.0.280.0060.00615.35
7.0.270.0040.00815.39
7.0.260.0060.00615.58
7.0.250.0030.00615.39
7.0.240.0120.00315.39
7.0.230.0000.00715.19
7.0.220.0000.00915.39
7.0.210.0000.00715.19
7.0.200.0050.00416.08
7.0.190.0000.00915.31
7.0.180.0070.00015.41
7.0.170.0050.00315.03
7.0.160.0000.01115.37
7.0.150.0030.01014.93
7.0.140.0050.03818.68
7.0.130.0040.00415.46
7.0.120.0030.00715.37
7.0.110.0040.00715.47
7.0.100.0000.01115.21
7.0.90.0040.00815.27
7.0.80.0000.01215.11
7.0.70.0080.00815.29
7.0.60.0050.04217.77
7.0.50.0030.02616.78
7.0.40.0030.02315.50
7.0.30.0070.02115.69
7.0.20.0050.02515.56
7.0.10.0080.02015.56
7.0.00.0040.02115.50
5.6.380.0030.01014.61
5.6.370.0070.01014.26
5.6.360.0040.00913.88
5.6.350.0040.01114.19
5.6.340.0030.00914.42
5.6.330.0030.00714.44
5.6.320.0030.00814.34
5.6.310.0170.00014.18
5.6.300.0060.00314.36
5.6.290.0030.00614.45
5.6.280.0070.03717.64
5.6.270.0050.00514.11
5.6.260.0080.00414.34
5.6.250.0070.00314.36
5.6.240.0000.01414.50
5.6.230.0040.00414.17
5.6.220.0040.01514.66
5.6.210.0020.04717.40
5.6.200.0070.02215.98
5.6.190.0030.02416.00
5.6.180.0030.02216.19
5.6.170.0020.03016.19
5.6.160.0070.04816.25
5.6.150.0080.03016.08
5.6.140.0050.04416.19
5.6.130.0080.04216.07
5.6.120.0080.02316.20
5.6.110.0050.03316.27
5.6.100.0020.03316.13
5.6.90.0060.03916.12
5.6.80.0080.04215.80
5.6.70.0090.02215.73
5.6.60.0020.03915.89
5.6.50.0060.02615.86
5.6.40.0040.02415.92
5.6.30.0080.02515.95
5.6.20.0050.02315.81
5.6.10.0050.03515.89
5.6.00.0070.04115.68
5.5.380.0000.01111.42
5.5.370.0040.00411.00
5.5.360.0000.00611.24
5.5.350.0030.04115.69
5.5.340.0010.02114.58
5.5.330.0040.02514.55
5.5.320.0000.02614.50
5.5.310.0070.01914.67
5.5.300.0050.04414.48
5.5.290.0030.04514.44
5.5.280.0050.02614.59
5.5.270.0030.04414.54
5.5.260.0050.03014.49
5.5.250.0070.03314.21
5.5.240.0070.03814.25
5.5.230.0040.03414.27
5.5.220.0050.02814.21
5.5.210.0070.04014.02
5.5.200.0090.04014.06
5.5.190.0130.02814.25
5.5.180.0020.02314.28
5.5.170.0000.00910.89
5.5.160.0030.04414.17
5.5.150.0030.03814.12
5.5.140.0020.03514.17
5.5.130.0050.02814.30
5.5.120.0120.02714.28
5.5.110.0070.02014.18
5.5.100.0000.04414.28
5.5.90.0000.02814.23
5.5.80.0020.03214.15
5.5.70.0050.04213.96
5.5.60.0050.03914.20
5.5.50.0050.03914.25
5.5.40.0080.02114.21
5.5.30.0050.03714.06
5.5.20.0070.03514.07
5.5.10.0100.03713.95
5.5.00.0070.03513.93
5.4.450.0070.04015.03
5.4.440.0050.03715.14
5.4.430.0050.03815.20
5.4.420.0050.04015.20
5.4.410.0070.04215.14
5.4.400.0030.04414.97
5.4.390.0030.02514.89
5.4.380.0080.04014.94
5.4.370.0070.04014.90
5.4.360.0060.01914.82
5.4.350.0070.04215.04
5.4.340.0050.02315.15
5.4.330.0040.00411.07
5.4.320.0030.03915.16
5.4.310.0050.03814.98
5.4.300.0030.02215.00
5.4.290.0030.02014.90
5.4.280.0050.03414.89
5.4.270.0070.04214.83
5.4.260.0030.04215.10
5.4.250.0080.02014.95
5.4.240.0100.03815.03
5.4.230.0110.03215.08
5.4.220.0130.03015.13
5.4.210.0010.03115.09
5.4.200.0070.03814.99
5.4.190.0070.04214.94
5.4.180.0020.04214.99
5.4.170.0070.03414.98
5.4.160.0070.03715.01
5.4.150.0070.04114.94
5.4.140.0050.03013.78
5.4.130.0050.03713.78
5.4.120.0030.03813.65
5.4.110.0090.03013.79
5.4.100.0060.03013.76
5.4.90.0080.04013.85
5.4.80.0050.02613.40
5.4.70.0030.02113.61
5.4.60.0100.03513.72
5.4.50.0070.02213.78
5.4.40.0080.03713.72
5.4.30.0020.04513.77
5.4.20.0030.03813.68
5.4.10.0050.02613.64
5.4.00.0060.02313.33
5.3.290.0070.04212.60
5.3.280.0100.03612.37
5.3.270.0000.04612.59
5.3.260.0060.03612.57
5.3.250.0020.04312.46
5.3.240.0040.02412.39
5.3.230.0020.03912.45
5.3.220.0080.03512.40
5.3.210.0050.03312.60
5.3.200.0020.04212.35
5.3.190.0050.04212.45
5.3.180.0000.02912.42
5.3.170.0050.02712.57
5.3.160.0060.03312.52
5.3.150.0020.04412.37
5.3.140.0050.04512.57
5.3.130.0040.03012.52
5.3.120.0100.03212.45
5.3.110.0030.04712.39
5.3.100.0030.03012.19
5.3.90.0080.03112.44
5.3.80.0020.04412.12
5.3.70.0040.03712.23
5.3.60.0080.03212.34
5.3.50.0030.03312.13
5.3.40.0030.03312.12
5.3.30.0050.01912.17
5.3.20.0050.02312.05
5.3.10.0030.02511.94
5.3.00.0030.04011.79
5.2.170.0080.02810.16
5.2.160.0020.02710.17
5.2.150.0000.02110.24
5.2.140.0020.03510.15
5.2.130.0070.02110.24
5.2.120.0030.03310.15
5.2.110.0070.03010.13
5.2.100.0050.03010.13
5.2.90.0040.03010.23
5.2.80.0030.02910.07
5.2.70.0030.02810.05
5.2.60.0040.03210.15
5.2.50.0050.02210.13
5.2.40.0050.01610.05
5.2.30.0060.0329.97
5.2.20.0000.0259.98
5.2.10.0080.0309.90
5.2.00.0030.0339.84
5.1.60.0020.0259.52
5.1.50.0020.0309.45
5.1.40.0050.0249.36
5.1.30.0030.0329.53
5.1.20.0080.0259.61
5.1.10.0000.0289.41
5.1.00.0020.0329.49
5.0.50.0020.0208.66
5.0.40.0050.0218.53
5.0.30.0000.0408.55
5.0.20.0020.0258.61
5.0.10.0050.0158.47
5.0.00.0020.0228.49
4.4.90.0020.0138.30
4.4.80.0000.0158.30
4.4.70.0020.0178.30
4.4.60.0020.0188.30
4.4.50.0030.0178.30
4.4.40.0070.0228.30
4.4.30.0020.0118.30
4.4.20.0000.0208.30
4.4.10.0010.0218.30
4.4.00.0030.0288.30
4.3.110.0000.0188.30
4.3.100.0020.0208.30
4.3.90.0030.0158.30
4.3.80.0010.0308.30
4.3.70.0070.0158.30
4.3.60.0050.0208.30
4.3.50.0030.0138.30
4.3.40.0020.0148.30
4.3.30.0030.0108.30
4.3.20.0030.0098.30
4.3.10.0000.0138.30
4.3.00.0000.0138.30

preferences:
39.07 ms | 400 KiB | 5 Q