3v4l.org

run code in 300+ PHP versions simultaneously
<?php class user_message { public $message = 'Hello All, I am '; public function introduce($name) { return $this->message.$name."<br />"; } } $mymessage = New user_message(); echo $mymessage->introduce('Scott'); ?>

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.0070.01018.85
8.3.30.0130.00618.96
8.3.20.0040.00420.34
8.3.10.0000.00823.44
8.3.00.0090.00019.13
8.2.170.0070.00722.96
8.2.160.0140.00020.47
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0000.00722.08
8.2.110.0060.00322.11
8.2.100.0110.00017.84
8.2.90.0000.00817.84
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0080.00019.88
8.2.30.0040.00418.07
8.2.20.0070.00017.57
8.2.10.0060.00318.01
8.2.00.0080.00017.61
8.1.270.0050.00323.88
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00620.79
8.1.230.0040.00820.65
8.1.220.0040.00417.74
8.1.210.0060.00318.88
8.1.200.0060.00317.35
8.1.190.0040.00417.54
8.1.180.0030.00718.89
8.1.170.0020.00518.59
8.1.160.0000.00722.01
8.1.150.0040.00418.70
8.1.140.0040.00417.43
8.1.130.0000.00717.84
8.1.120.0050.00217.35
8.1.110.0000.01117.49
8.1.100.0060.00317.45
8.1.90.0030.00317.46
8.1.80.0070.00017.51
8.1.70.0030.00317.48
8.1.60.0000.00717.47
8.1.50.0040.00417.54
8.1.40.0040.00417.52
8.1.30.0030.00617.49
8.1.20.0050.00317.61
8.1.10.0030.00517.45
8.1.00.0030.00617.39
8.0.300.0040.00420.08
8.0.290.0040.00417.15
8.0.280.0000.00818.36
8.0.270.0000.00717.33
8.0.260.0030.00317.26
8.0.250.0030.00416.96
8.0.240.0030.00616.85
8.0.230.0040.00416.84
8.0.220.0000.00816.92
8.0.210.0040.00416.85
8.0.200.0000.00716.88
8.0.190.0060.00316.98
8.0.180.0000.00716.97
8.0.170.0040.00416.93
8.0.160.0000.00716.85
8.0.150.0020.00516.82
8.0.140.0040.00416.93
8.0.130.0060.00013.33
8.0.120.0080.00016.76
8.0.110.0000.00716.93
8.0.100.0070.00016.75
8.0.90.0000.00716.83
8.0.80.0100.01016.88
8.0.70.0040.00416.84
8.0.60.0040.00416.87
8.0.50.0040.00416.91
8.0.30.0140.00517.00
8.0.20.0110.00717.42
8.0.10.0040.00416.97
8.0.00.0050.01316.58
7.4.330.0000.00515.00
7.4.320.0060.00016.58
7.4.300.0030.00316.60
7.4.290.0080.00316.50
7.4.280.0070.00016.48
7.4.270.0000.00716.36
7.4.260.0000.00716.64
7.4.250.0040.00416.49
7.4.240.0070.00016.53
7.4.230.0000.00716.63
7.4.220.0040.01916.53
7.4.210.0070.00916.56
7.4.200.0070.00016.68
7.4.190.0030.00316.36
7.4.160.0060.01016.43
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0080.01116.50
7.4.120.0140.00716.63
7.4.110.0130.00816.52
7.4.100.0100.00616.38
7.4.90.0090.00916.60
7.4.80.0050.01219.39
7.4.70.0030.01316.54
7.4.60.0100.00516.44
7.4.50.0060.00316.46
7.4.40.0060.00922.77
7.4.30.0100.00716.54
7.4.10.0100.00514.76
7.4.00.0020.01314.86
7.3.330.0050.00013.28
7.3.320.0030.00313.36
7.3.310.0050.00216.32
7.3.300.0000.00716.18
7.3.290.0090.00616.32
7.3.280.0050.01116.27
7.3.270.0110.00617.40
7.3.260.0130.00616.58
7.3.250.0120.00816.39
7.3.240.0140.00616.53
7.3.230.0070.01016.56
7.3.210.0100.00716.45
7.3.200.0090.00919.39
7.3.190.0060.00916.32
7.3.180.0040.01116.46
7.3.170.0060.01016.41
7.3.160.0040.01216.49
7.3.130.0120.00014.59
7.3.120.0050.01014.80
7.3.110.0100.00714.55
7.3.100.0060.00915.07
7.3.90.0000.01014.57
7.3.80.0100.00315.14
7.3.70.0000.00914.85
7.3.60.0050.00614.79
7.3.50.0000.00814.80
7.3.40.0030.00714.74
7.3.30.0100.00314.88
7.3.20.0030.00916.54
7.3.10.0060.00616.63
7.3.00.0100.00516.60
7.2.330.0100.00716.80
7.2.320.0030.01516.40
7.2.310.0090.00916.32
7.2.300.0060.01316.82
7.2.290.0070.01016.35
7.2.260.0110.00715.21
7.2.250.0100.00715.06
7.2.240.0090.00614.73
7.2.230.0060.00914.96
7.2.220.0110.00414.92
7.2.210.0080.00814.94
7.2.200.0000.01015.18
7.2.190.0090.00314.99
7.2.180.0030.01014.78
7.2.170.0030.01014.80
7.2.160.0070.01115.24
7.2.150.0070.01016.88
7.2.140.0110.00417.05
7.2.130.0110.00516.81
7.2.120.0090.00616.80
7.2.110.0080.00616.81
7.2.100.0050.00917.03
7.2.90.0050.01016.99
7.2.80.0060.00916.92
7.2.70.0050.01016.63
7.2.60.0070.00716.84
7.2.50.0090.00616.92
7.2.40.0070.00716.77
7.2.30.0080.00516.75
7.2.20.0110.00616.92
7.2.10.0090.00816.99
7.2.00.0080.00617.49
7.1.330.0080.00815.78
7.1.320.0060.00915.75
7.1.310.0080.00415.82
7.1.300.0100.00015.64
7.1.290.0040.00715.74
7.1.280.0080.00815.55
7.1.270.0060.01015.92
7.1.260.0030.01216.01
7.1.250.0030.00815.70
7.1.240.0080.00415.64
7.1.230.0060.00815.66
7.1.220.0030.01015.65
7.1.210.0100.00715.65
7.1.200.0060.00615.68
7.1.190.0050.00815.75
7.1.180.0040.00715.75
7.1.170.0040.00815.52
7.1.160.0100.00315.60
7.1.150.0070.00515.74
7.1.140.0030.01015.65
7.1.130.0030.00715.72
7.1.120.0050.00515.72
7.1.110.0090.00515.64
7.1.100.0080.01315.87
7.1.90.0100.00315.57
7.1.80.0050.00715.70
7.1.70.0020.00916.14
7.1.60.0060.01116.92
7.1.50.0080.00916.13
7.1.40.0050.00815.72
7.1.30.0060.01015.57
7.1.20.0060.00715.57
7.1.10.0040.00615.45
7.1.00.0090.02517.95
7.0.330.0070.00715.28
7.0.320.0040.01115.33
7.0.310.0070.00715.36
7.0.300.0080.00515.44
7.0.290.0050.00815.35
7.0.280.0080.00615.37
7.0.270.0030.00915.25
7.0.260.0030.01115.34
7.0.250.0110.00315.40
7.0.240.0050.00915.57
7.0.230.0010.01015.21
7.0.220.0080.00515.26
7.0.210.0080.00515.14
7.0.200.0060.00815.30
7.0.190.0050.00815.33
7.0.180.0100.00315.40
7.0.170.0040.00615.53
7.0.160.0080.00715.32
7.0.150.0030.00815.29
7.0.140.0070.03117.61
7.0.130.0060.00615.51
7.0.120.0060.00615.47
7.0.110.0020.00915.36
7.0.100.0050.00715.42
7.0.90.0100.00315.21
7.0.80.0030.00815.48
7.0.70.0030.00615.39
7.0.60.0050.03616.81
7.0.50.0040.02016.35
7.0.40.0070.02115.70
7.0.30.0120.02715.64
7.0.20.0160.02815.62
7.0.10.0070.02815.58
7.0.00.0050.01915.62
5.6.400.0070.01114.44
5.6.390.0070.01014.35
5.6.380.0080.01014.35
5.6.370.0050.01114.38
5.6.360.0080.00814.11
5.6.350.0070.00414.41
5.6.340.0070.00714.26
5.6.330.0030.00814.20
5.6.320.0050.00814.38
5.6.310.0020.01214.31
5.6.300.0040.00814.12
5.6.290.0070.00514.36
5.6.280.0030.03016.61
5.6.270.0080.00314.45
5.6.260.0080.00214.14
5.6.250.0060.00414.30
5.6.240.0030.00714.27
5.6.230.0090.00514.22
5.6.220.0090.00714.24
5.6.210.0030.03416.37
5.6.200.0080.02815.58
5.6.190.0030.03116.32
5.6.180.1130.01816.22
5.6.170.0110.01816.38
5.6.160.0050.02616.30
5.6.150.0040.01815.57
5.6.140.0070.03415.60
5.6.130.0040.03415.55
5.6.120.0050.02316.40
5.6.110.0070.02916.66
5.6.100.0110.02816.46
5.6.90.0070.01716.56
5.6.80.0030.03316.32
5.6.70.0030.01014.23
5.6.60.0080.00514.32
5.6.50.0110.00114.18
5.6.40.0080.00314.47
5.6.30.0040.01014.17
5.6.20.0070.00514.23
5.6.10.0020.01214.27
5.6.00.0030.00814.33
5.5.380.0030.00512.79
5.5.370.0070.00212.64
5.5.360.0050.00912.82
5.5.350.0080.03315.24
5.5.340.0020.03514.56
5.5.330.0110.02315.30
5.5.320.0170.02715.16
5.5.310.0160.02715.30
5.5.300.0080.02914.35
5.5.290.0040.01814.57
5.5.280.0060.03315.53
5.5.270.0060.03215.43
5.5.260.0090.01415.30
5.5.250.0060.01915.47
5.5.240.0090.03015.20
5.5.230.0080.00312.52
5.5.220.0100.00112.68
5.5.210.0020.01112.62
5.5.200.0070.00412.75
5.5.190.0050.00712.71
5.5.180.0050.00512.65
5.5.170.0060.00612.73
5.5.160.0040.00712.74
5.5.150.0030.01012.65
5.5.140.0060.00512.64
5.5.130.0050.00412.62
5.5.120.0040.00612.72
5.5.110.0060.00412.76
5.5.100.0040.00712.72
5.5.90.0040.00812.68
5.5.80.0080.00512.56
5.5.70.0060.00612.75
5.5.60.0060.00212.67
5.5.50.0020.00912.75
5.5.40.0020.01112.61
5.5.30.0050.00912.62
5.5.20.0080.00012.71
5.5.10.0050.00612.74
5.5.00.0020.00912.61
5.4.450.0070.01913.88
5.4.440.0070.02213.93
5.4.430.0110.02614.00
5.4.420.0100.02013.99
5.4.410.0140.01913.95
5.4.400.0120.02413.89
5.4.390.0100.01913.79
5.4.380.0110.01713.86
5.4.370.0090.01913.80
5.4.360.0110.02913.81
5.4.350.0130.02413.88
5.4.340.0090.02013.74
5.4.330.0030.00811.27
5.4.320.0150.02413.81
5.4.310.0110.01813.78
5.4.300.0160.02513.76
5.4.290.0090.01413.70
5.4.280.0130.02513.74
5.4.270.0110.02013.77
5.4.260.0130.02513.79
5.4.250.0170.01213.82
5.4.240.0120.02113.91
5.4.230.0090.01913.85
5.4.220.0120.01813.73
5.4.210.0110.02413.70
5.4.200.0160.01513.78
5.4.190.0080.01813.80
5.4.180.0170.02213.77
5.4.170.0140.01513.75
5.4.160.0140.02413.77
5.4.150.0110.02613.84
5.4.140.0100.02912.90
5.4.130.0100.01812.94
5.4.120.0130.02412.88
5.4.110.0140.02312.81
5.4.100.0110.02712.87
5.4.90.0110.02712.91
5.4.80.0150.02212.97
5.4.70.0120.02312.93
5.4.60.0080.02912.82
5.4.50.0150.02612.87
5.4.40.0150.02612.93
5.4.30.0080.03012.91
5.4.20.0100.02112.93
5.4.10.0130.01612.90
5.4.00.0130.01912.69
5.3.290.0120.02912.27
5.3.280.0100.01612.32
5.3.270.0130.01212.28
5.3.260.0120.01612.25
5.3.250.0160.01612.33
5.3.240.0120.01512.32
5.3.230.0110.01712.29
5.3.220.0110.01812.28
5.3.210.0100.01812.26
5.3.200.0060.02012.32
5.3.190.0090.01612.31
5.3.180.0140.02612.26
5.3.170.0110.02612.31
5.3.160.0130.02312.31
5.3.150.0140.01712.24
5.3.140.0150.02412.23
5.3.130.0140.02312.24
5.3.120.0120.02612.29
5.3.110.0120.02512.25
5.3.100.0100.02812.08
5.3.90.0120.02712.11
5.3.80.0140.02112.16
5.3.70.0110.02712.06
5.3.60.0100.01812.16
5.3.50.0190.02312.04
5.3.40.0120.01712.09
5.3.30.0090.01912.05
5.3.20.0120.01512.00
5.3.10.0120.02611.94
5.3.00.0070.03012.01
5.2.170.0120.01711.14
5.2.160.0100.02211.14
5.2.150.0080.01611.13
5.2.140.0130.03111.15
5.2.130.0120.01311.18
5.2.120.0110.01511.09
5.2.110.0100.01711.25
5.2.100.0080.02711.12
5.2.90.0110.02011.21
5.2.80.0100.01511.10
5.2.70.0070.01911.09
5.2.60.0090.01511.09
5.2.50.0070.02011.13
5.2.40.0080.01611.04
5.2.30.0100.01811.07
5.2.20.0030.02011.11
5.2.10.0080.01611.13
5.2.00.0080.01710.89
5.1.60.0080.01310.53
5.1.50.0070.01610.58
5.1.40.0030.01810.53
5.1.30.0080.02910.78
5.1.20.0050.01610.82
5.1.10.0050.02610.66
5.1.00.0080.01310.62
5.0.50.0050.0139.90
5.0.40.0060.0119.84
5.0.30.0030.0179.72
5.0.20.0050.0109.71
5.0.10.0020.0129.64
5.0.00.0020.0209.63
4.4.90.0020.0119.57
4.4.80.0080.0179.57
4.4.70.0030.0109.57
4.4.60.0020.0119.57
4.4.50.0030.0129.57
4.4.40.0020.0169.57
4.4.30.0020.0109.57
4.4.20.0050.0099.57
4.4.10.0030.0119.57
4.4.00.0030.0149.57
4.3.110.0050.0089.57
4.3.100.0030.0089.57
4.3.90.0120.0099.57
4.3.80.0070.0119.57
4.3.70.0060.0079.57
4.3.60.0030.0119.57
4.3.50.0020.0129.57
4.3.40.0030.0159.57
4.3.30.0000.0119.57
4.3.20.0000.0119.57
4.3.10.0050.0109.57
4.3.00.0020.0089.57

preferences:
38.7 ms | 400 KiB | 5 Q